GNOME Bugzilla – Bug 779188
Crash when "Set As Wallpaper"
Last modified: 2017-02-25 11:30:40 UTC
Created attachment 346655 [details] backtrace Nautilus crashes when trying to set a image as wallpaper. Steps to reproduce: 1. Right click an image file 2. Select "Set As Wallpaper" option Actual results: Crash!
Created attachment 346656 [details] [review] file-operations: do not free string literal The "status" string was using the g_autofree macro to ensure its automatic cleanup, but its attributions were all string literals. We should live by the mantra "WE SHALL NEVER FREE MEMORY THAT WE DIDN'T MALLOC(ED)".
Review of attachment 346656 [details] [review]: Oops. Thanks! ::: src/nautilus-file-operations.c @@ +3646,3 @@ CommonJob *job; gboolean is_move; + gchar *status = NULL; The assignment here sticks out, might as well remove it.
Created attachment 346670 [details] [review] file-operations: do not free string literal The "status" string was using the g_autofree macro to ensure its automatic cleanup, but its attributions were all string literals. We should live by the mantra "WE SHALL NEVER FREE MEMORY THAT WE DIDN'T MALLOC(ED)".
Review of attachment 346670 [details] [review]: LGTM
thanks! Attachment 346670 [details] pushed as 870179b - file-operations: do not free string literal