GNOME Bugzilla – Bug 782070
files-view: Fix memory leak
Last modified: 2017-05-02 15:13:40 UTC
.
Created attachment 350876 [details] [review] files-view: Fix memory leak
Review of attachment 350876 [details] [review]: Hey, thanks! Could you expand the commit message? Explain how that is a leak, for example. ::: src/nautilus-files-view.c @@ +1450,3 @@ { GtkWidget *dialog; + g_autofree gchar *mime_type; Set this to NULL explicitly. It helps defend against possible bugs.
Created attachment 350885 [details] [review] files-view: Fix memory leak nautilus_file_get_mime_type() returns a newly allocated string, which should be freed when no longer required. using g_autofree() automatically frees the string fixing the leak
Review of attachment 350885 [details] [review]: LGTM
Attachment 350885 [details] pushed as cfee568 - files-view: Fix memory leak