diff options
author | Chris Toshok <toshok@ximian.com> | 2003-01-10 03:12:30 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-01-10 03:12:30 +0800 |
commit | fef77b9924ba63a06e57b596c00dd7b92be276f5 (patch) | |
tree | b37f27ad107c92769583e51b29da7c98d99eac13 | |
parent | 129f54c0d27eb9f404cdc3c917975327e9a063ef (diff) | |
download | gsoc2013-evolution-fef77b9924ba63a06e57b596c00dd7b92be276f5.tar.gz gsoc2013-evolution-fef77b9924ba63a06e57b596c00dd7b92be276f5.tar.zst gsoc2013-evolution-fef77b9924ba63a06e57b596c00dd7b92be276f5.zip |
need to ref/sink "new" so that the g_object_unref doesn't spew a warning.
2003-01-09 Chris Toshok <toshok@ximian.com>
* 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
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 5 |
2 files changed, 9 insertions, 1 deletions
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 <toshok@ximian.com> + + * 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 <ettore@ximian.com> * 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; |