GNOME Bugzilla – Bug 755862
ges-project: leaks internal file info
Last modified: 2015-10-01 09:52:31 UTC
GFileInfo should be freed after usage.
Created attachment 312409 [details] [review] [1/2] unref GFileInfo
Created attachment 312410 [details] [review] [2/2] fix wrong pointer access
Review of attachment 312409 [details] [review]: ::: ges/ges-project.c @@ -271,3 +271,3 @@ g_ptr_array_add (new_paths, g_strdup (value)); - for (info = g_file_enumerator_next_file (fenum, NULL, NULL); - info; info = g_file_enumerator_next_file (fenum, NULL, NULL)) { + info = g_file_enumerator_next_file (fenum, NULL, NULL); + while (info != NULL) { Why don't you simply unref and also change the loop style?
Review of attachment 312410 [details] [review]: OK
commit 807437f9fe86b7ba961b663b4a8f9a2a10d0e129 Author: Justin Kim <justin.kim@collabora.com> Date: Wed Sep 30 17:27:26 2015 +0900 project: fix a pointer for error message https://bugzilla.gnome.org/show_bug.cgi?id=755862 commit ecb2a7c820f386e547e8ce2c52fe7001390dc1bd Author: Justin Kim <justin.kim@collabora.com> Date: Wed Sep 30 17:26:31 2015 +0900 project: don't leak GFileInfo https://bugzilla.gnome.org/show_bug.cgi?id=755862