aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-05-20 22:53:12 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-05-20 22:53:12 +0800
commitf9932330e74c2e2abcbec925f5a971fc546d122f (patch)
tree4d5b8ecbb750deec3fe3f99a820dd15cfd834fff
parent5352cbb678ba2b4a40b767565a52cf24794dfeac (diff)
downloadgsoc2013-evolution-f9932330e74c2e2abcbec925f5a971fc546d122f.tar.gz
gsoc2013-evolution-f9932330e74c2e2abcbec925f5a971fc546d122f.tar.zst
gsoc2013-evolution-f9932330e74c2e2abcbec925f5a971fc546d122f.zip
Always unref the composer [even when we are destroying it], otherwise we
* mail-callbacks.c (composer_sent_cb): Always unref the composer [even when we are destroying it], otherwise we leak it and we get the nasty bug where you can't quit. svn path=/trunk/; revision=16941
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f06f514f9e..b78dbef629 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-20 Ettore Perazzoli <ettore@ximian.com>
+
+ * mail-callbacks.c (composer_sent_cb): Always unref the composer
+ [even when we are destroying it], otherwise we leak it and we get
+ the nasty bug where you can't quit.
+
2002-05-16 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (ml_tree_value_at): Check for a label tag when
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 7cc1dfbf4d..b1d8174542 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -355,9 +355,9 @@ composer_sent_cb (char *uri, CamelMimeMessage *message, gboolean sent, void *dat
} else {
e_msg_composer_set_enable_autosave (send->composer, TRUE);
gtk_widget_show (GTK_WIDGET (send->composer));
- gtk_object_unref (GTK_OBJECT (send->composer));
}
+ gtk_object_unref (GTK_OBJECT (send->composer));
g_free (send);
camel_object_unref (CAMEL_OBJECT (message));
}