pbutils:encoding-target: Fix string memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=757926
This commit is contained in:
Vineeth TM 2015-11-11 14:37:21 +09:00 committed by Sebastian Dröge
parent b61e1465b7
commit 3f099e3c29

View file

@ -801,6 +801,8 @@ get_matching_filenames (gchar * path, gchar * filename)
tmp = g_build_filename (path, filename, NULL);
if (g_file_test (tmp, G_FILE_TEST_EXISTS))
res = g_list_append (res, tmp);
else
g_free (tmp);
while ((subdirname = g_dir_read_name (topdir))) {
gchar *ltmp = g_build_filename (path, subdirname, NULL);