aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Hallendal <micke@codefactory.se>2002-01-27 06:17:35 +0800
committerMikael Hallendal <hallski@src.gnome.org>2002-01-27 06:17:35 +0800
commit09f9d4896e697e3c947c12ff7d36f1cdee85ef52 (patch)
treea148de799f1b520c81dbda1ab465d00ec9097a91
parent81a90e2532b0bc7989ed86bee3a07b19fd8403ea (diff)
downloadgsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar.gz
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar.bz2
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar.lz
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar.xz
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.tar.zst
gsoc2013-evolution-09f9d4896e697e3c947c12ff7d36f1cdee85ef52.zip
check if re->edit != NULL before trying to unref it. Fixes a segfault when
2002-01-26 Mikael Hallendal <micke@codefactory.se> * rule-editor.c (add_editor_clicked): check if re->edit != NULL before trying to unref it. Fixes a segfault when closing the rule editor. svn path=/trunk/; revision=15483
-rw-r--r--filter/ChangeLog6
-rw-r--r--filter/rule-editor.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 76a439ced6..7e008b8d71 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-26 Mikael Hallendal <micke@codefactory.se>
+
+ * rule-editor.c (add_editor_clicked): check if re->edit != NULL
+ before trying to unref it. Fixes a segfault when closing the
+ rule editor.
+
2002-01-15 Not Zed <NotZed@Ximian.com>
* filter-input.c (xml_decode): If we write "" to an xml file, we
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index b6056b3777..63dbd7e388 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -253,7 +253,10 @@ add_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re)
default:
gnome_dialog_close (GNOME_DIALOG (dialog));
case -1:
- gtk_object_unref (GTK_OBJECT (re->edit));
+ if (re->edit) {
+ gtk_object_unref (GTK_OBJECT (re->edit));
+ }
+
re->edit = NULL;
re->dialog = NULL;