aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-individual-view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 360d37e33..7aedea8a9 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -243,8 +243,7 @@ individual_view_tooltip_destroy_cb (GtkWidget *widget,
if (priv->tooltip_widget != NULL)
{
DEBUG ("Tooltip destroyed");
- g_object_unref (priv->tooltip_widget);
- priv->tooltip_widget = NULL;
+ tp_clear_object (&priv->tooltip_widget);
}
}