GNOME Bugzilla – Bug 657042
libmenu: Don't try to unref potentially NULL pointers
Last modified: 2011-08-27 05:16:53 UTC
Just a quick g_warning cleanup.
Created attachment 194334 [details] [review] libmenu: Don't try to unref potentially NULL pointers When a DIRECTORY desktop entry fails to load, we'll try to unref some NULL pointers. This was causing some warnings.
+ if (entry_directory->name != NULL) + { + g_free (entry_directory->name); g_free already is NULL-safe.
Created attachment 194354 [details] [review] libmenu: Don't try to unref potentially NULL pointers When a DIRECTORY desktop entry fails to load, we'll try to unref some NULL pointers. This was causing some warnings. ... I knew that.
Review of attachment 194354 [details] [review]: Looks correct to me.
Attachment 194354 [details] pushed as 739d3f6 - libmenu: Don't try to unref potentially NULL pointers