Plug memory leak. (#140770, John Ehresman)
authorTor Lillqvist <tml@iki.fi>
Sun, 25 Apr 2004 22:51:46 +0000 (22:51 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 25 Apr 2004 22:51:46 +0000 (22:51 +0000)
2004-04-25  Tor Lillqvist  <tml@iki.fi>

* glib/gwin32.c (g_win32_get_package_installation_subdirectory):
Plug memory leak. (#140770, John Ehresman)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gwin32.c

index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index a3e70a305ec8cc09bedb9d013d4c3f064c934a60..605e72d08540f44cf023233df43dedbba1427da0 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Plug memory leak. (#140770, John Ehresman)
+
 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
index 5ba11992bf81f416de04e801842efe8ed1af01fc..5d0bb62d7641ae68289f1037c1517c5c9e438935 100644 (file)
@@ -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;
 }