diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-03 21:44:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-03 21:54:54 +0800 |
commit | 9e808134b2d3770c1e23e1b7c3938b6ac2061ffb (patch) | |
tree | b957e7b2ad949221c072a19ad6e4bcbf36ab5f1f | |
parent | 7cbe28b6cfc22744a0a6079213b9614d87bf22ad (diff) | |
download | gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar.gz gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar.bz2 gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar.lz gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar.xz gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.tar.zst gsoc2013-empathy-9e808134b2d3770c1e23e1b7c3938b6ac2061ffb.zip |
individual-view: properly unref the tooltip_widget when disposing (#641157)
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 597b4c4f6..d384d7809 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -163,11 +163,7 @@ individual_view_tooltip_destroy_cb (GtkWidget *widget, { EmpathyIndividualViewPriv *priv = GET_PRIV (view); - if (priv->tooltip_widget != NULL) - { - DEBUG ("Tooltip destroyed"); - tp_clear_object (&priv->tooltip_widget); - } + tp_clear_object (&priv->tooltip_widget); } static gboolean @@ -1984,7 +1980,7 @@ individual_view_dispose (GObject *object) tp_clear_object (&priv->store); tp_clear_object (&priv->filter); - tp_clear_pointer (&priv->tooltip_widget, gtk_widget_destroy); + tp_clear_object (&priv->tooltip_widget); empathy_individual_view_set_live_search (view, NULL); |