From fef77b9924ba63a06e57b596c00dd7b92be276f5 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 9 Jan 2003 19:12:30 +0000 Subject: need to ref/sink "new" so that the g_object_unref doesn't spew a warning. 2003-01-09 Chris Toshok * e-msg-composer-hdrs.c (e_msg_composer_hdrs_new): need to ref/sink "new" so that the g_object_unref doesn't spew a warning. svn path=/trunk/; revision=19368 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer-hdrs.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 9cb561620f..8b9e337e66 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2003-01-09 Chris Toshok + + * e-msg-composer-hdrs.c (e_msg_composer_hdrs_new): need to + ref/sink "new" so that the g_object_unref doesn't spew a warning. + 2003-01-08 Ettore Perazzoli * Makefile.am: Icons are now in $(datadir)/evolution/images diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 6b80f01d3b..172718157b 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -708,7 +708,10 @@ e_msg_composer_hdrs_new (BonoboUIComponent *uic, int visible_mask, int visible_f new = g_object_new (e_msg_composer_hdrs_get_type (), NULL); priv = new->priv; priv->uic = uic; - + + g_object_ref (new); + gtk_object_sink (GTK_OBJECT (new)); + if (!setup_corba (new)) { g_object_unref (new); return NULL; -- cgit