From: Tor Lillqvist Date: Sun, 25 Apr 2004 22:51:46 +0000 (+0000) Subject: Plug memory leak. (#140770, John Ehresman) X-Git-Tag: GLIB_2_4_1~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=336ffad2cbd7828e41a79ecc266efb0690eda41b;p=platform%2Fupstream%2Fglib.git Plug memory leak. (#140770, John Ehresman) 2004-04-25 Tor Lillqvist * glib/gwin32.c (g_win32_get_package_installation_subdirectory): Plug memory leak. (#140770, John Ehresman) --- diff --git a/ChangeLog b/ChangeLog index a3e70a305..605e72d08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a3e70a305..605e72d08 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index a3e70a305..605e72d08 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a3e70a305..605e72d08 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a3e70a305..605e72d08 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a3e70a305..605e72d08 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2004-04-25 Tor Lillqvist + + * glib/gwin32.c (g_win32_get_package_installation_subdirectory): + Plug memory leak. (#140770, John Ehresman) + 2004-04-23 Matthias Clasen * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): diff --git a/glib/gwin32.c b/glib/gwin32.c index 5ba11992b..5d0bb62d7 100644 --- a/glib/gwin32.c +++ b/glib/gwin32.c @@ -1288,8 +1288,12 @@ g_win32_get_package_installation_subdirectory (gchar *package, gchar *subdir) { gchar *prefix; + gchar *dirname; prefix = g_win32_get_package_installation_directory (package, dll_name); - return g_build_filename (prefix, subdir, NULL); + dirname = g_build_filename (prefix, subdir, NULL); + g_free (prefix); + + return dirname; }