[empathy] individual-view: properly unref the tooltip_widget when disposing (#641157)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-view: properly unref the tooltip_widget when disposing (#641157)
- Date: Thu, 3 Feb 2011 13:56:00 +0000 (UTC)
commit 9e808134b2d3770c1e23e1b7c3938b6ac2061ffb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 3 14:44:44 2011 +0100
individual-view: properly unref the tooltip_widget when disposing (#641157)
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 597b4c4..d384d78 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]