GNOME Bugzilla – Bug 709015
Crash when calling uninhibit
Last modified: 2013-11-03 06:13:33 UTC
If gtk_application_inhibit fails, nautilus crashes when calling gtk_application_uninhibit.
Created attachment 256000 [details] [review] file-operations: Don't crash after failed inhibit If gtk_application_inhibit fails, it returns a 0 cookie. When this invalid value is passed to gtk_application_uninhibit, Nautilus crashes if glib or gtk is compiled with minimal debug checks. So, only call gtk_application_uninhibit if a non-zero cookie is returned. Also, use the correct type for inhibit_cookie (guint).
Review of attachment 256000 [details] [review]: Looks good to me, thanks.
Pushed to master as fb2eaaa and gnome-3-10 as 8bcb7ac. Thanks.