mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Don't leak output_path. (#308546, Kjartan Maraas)
2005-06-23 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't leak output_path. (#308546, Kjartan Maraas)
This commit is contained in:
committed by
Matthias Clasen
parent
77e2a25f23
commit
f3a61fe4a0
@@ -1,5 +1,8 @@
|
|||||||
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
|
||||||
|
leak output_path. (#308546, Kjartan Maraas)
|
||||||
|
|
||||||
* glib/glib.symbols:
|
* glib/glib.symbols:
|
||||||
* glib/gfileutils.h:
|
* glib/gfileutils.h:
|
||||||
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
|
||||||
|
leak output_path. (#308546, Kjartan Maraas)
|
||||||
|
|
||||||
* glib/glib.symbols:
|
* glib/glib.symbols:
|
||||||
* glib/gfileutils.h:
|
* glib/gfileutils.h:
|
||||||
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
|
||||||
|
leak output_path. (#308546, Kjartan Maraas)
|
||||||
|
|
||||||
* glib/glib.symbols:
|
* glib/glib.symbols:
|
||||||
* glib/gfileutils.h:
|
* glib/gfileutils.h:
|
||||||
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
2005-06-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
|
||||||
|
leak output_path. (#308546, Kjartan Maraas)
|
||||||
|
|
||||||
* glib/glib.symbols:
|
* glib/glib.symbols:
|
||||||
* glib/gfileutils.h:
|
* glib/gfileutils.h:
|
||||||
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
* glib/gfileutils.c (g_build_pathv, g_build_filenamev):
|
||||||
|
@@ -612,9 +612,12 @@ g_key_file_load_from_data_dirs (GKeyFile *key_file,
|
|||||||
|
|
||||||
if (full_path)
|
if (full_path)
|
||||||
*full_path = output_path;
|
*full_path = output_path;
|
||||||
|
else
|
||||||
|
g_free (output_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (all_data_dirs);
|
g_strfreev (all_data_dirs);
|
||||||
|
|
||||||
return found_file;
|
return found_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user