GNOME Bugzilla – Bug 769808
Fix file list leaks
Last modified: 2016-08-21 16:45:13 UTC
After these changes, gobject-list reports no NautilusVFSFile leaks. I have also not encountered any crashes, so it must be good. :)
Created attachment 333190 [details] [review] Fix file list leaks Some functions call acquire file lists, but do not free them after use. This commit plugs the leaks.
Created attachment 333191 [details] [review] Fix file list leaks Some functions acquire file lists, but do not free them after use. This commit plugs the leaks.
Review of attachment 333191 [details] [review]: ::: src/nautilus-window-slot.c @@ +989,3 @@ priv->location_change_distance = distance; priv->tried_mount = FALSE; + priv->pending_selection = new_selection; this is wrong from a code design perspective, you need to make sure this keeps alive because you will need it more than just for the function live scope. Actually they are freed on the caller, which would make this crash.
Created attachment 333783 [details] [review] files-view: free file lists after use Some functions acquire file lists, but do not free them after use or erroneously acquire them twice. This commit plugs the leaks.
Review of attachment 333783 [details] [review]: +1 thanks!!!
Attachment 333783 [details] pushed as dd0539f - files-view: free file lists after use