summaryrefslogtreecommitdiff
path: root/src/notification.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-01-25 18:49:01 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-01-25 18:49:01 -0500
commit55df95a2f737ae89bab9fe82c5e2a9e620761f05 (patch)
tree66dbef50e38f6df9081b16348d1ce2c9c2680576 /src/notification.c
parentUpdated Czech translation (diff)
downloadzenity-55df95a2f737ae89bab9fe82c5e2a9e620761f05.tar.gz
zenity-55df95a2f737ae89bab9fe82c5e2a9e620761f05.tar.bz2
zenity-55df95a2f737ae89bab9fe82c5e2a9e620761f05.zip
Reset errors after freeing them
This was causing segfaults: https://bugzilla.redhat.com/show_bug.cgi?id=670895
Diffstat (limited to 'src/notification.c')
-rw-r--r--src/notification.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/notification.c b/src/notification.c
index 6fe44f1d..41d64e24 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -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")) {
bgstack15