diff options
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index ff53fa4eb0..a87dc02dba 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -190,8 +190,6 @@ emfv_init(GObject *o) g_signal_connect (emfv->preview, "on_url", G_CALLBACK (emfv_on_url_cb), emfv); p->invisible = gtk_invisible_new(); - g_object_ref(p->invisible); - gtk_object_sink((GtkObject *)p->invisible); g_signal_connect(p->invisible, "selection_get", G_CALLBACK(emfv_selection_get), emfv); g_signal_connect(p->invisible, "selection_clear_event", G_CALLBACK(emfv_selection_clear_event), emfv); gtk_selection_add_target(p->invisible, GDK_SELECTION_PRIMARY, GDK_SELECTION_TYPE_STRING, 0); @@ -252,7 +250,7 @@ emfv_destroy (GtkObject *o) } if (p->invisible) { - g_object_unref(p->invisible); + gtk_object_destroy(p->invisible); p->invisible = NULL; } |