Reset errors after freeing them
This was causing segfaults: https://bugzilla.redhat.com/show_bug.cgi?id=670895
This commit is contained in:
parent
e186364c31
commit
55df95a2f7
@ -133,6 +133,7 @@ zenity_notification_handle_stdin (GIOChannel *channel,
|
||||
if (error) {
|
||||
g_warning ("Error showing notification: %s", error->message);
|
||||
g_error_free (error);
|
||||
error = NULL;
|
||||
}
|
||||
|
||||
g_object_unref (notif);
|
||||
@ -150,6 +151,7 @@ zenity_notification_handle_stdin (GIOChannel *channel,
|
||||
if (error) {
|
||||
g_warning ("Error showing notification: %s", error->message);
|
||||
g_error_free (error);
|
||||
error = NULL;
|
||||
}
|
||||
}
|
||||
} else if (!g_ascii_strcasecmp (command, "visible")) {
|
||||
|
Reference in New Issue
Block a user