[glib] win32: Fix leak in g_win32_get_command_line()



commit b65287fea54eea8979914b06ff44adea4bc809cc
Author: TingPing <tingping tingping se>
Date:   Sat Dec 20 18:59:15 2014 -0500

    win32: Fix leak in g_win32_get_command_line()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741822

 glib/gwin32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/gwin32.c b/glib/gwin32.c
index fc4416b..0efc708 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -729,5 +729,6 @@ g_win32_get_command_line (void)
     result[i] = g_utf16_to_utf8 (args[i], -1, NULL, NULL, NULL);
   result[i] = NULL;
 
+  LocalFree (args);
   return result;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]