From f733c171b830be2914f2473dcac2ed5787ad8317 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sat, 9 Jul 2011 15:58:25 +0100 Subject: Merge upstream GDL 0.7.10 changes (bzr r10432) --- src/libgdl/gdl-dock-item-grip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libgdl') diff --git a/src/libgdl/gdl-dock-item-grip.c b/src/libgdl/gdl-dock-item-grip.c index 2101d9621..0c202812c 100644 --- a/src/libgdl/gdl-dock-item-grip.c +++ b/src/libgdl/gdl-dock-item-grip.c @@ -214,9 +214,11 @@ gdl_dock_item_grip_item_notify (GObject *master, ensure_title_and_icon_pixbuf (grip); } else if (strcmp (pspec->name, "long-name") == 0) { + if (grip->_priv->title_layout) { + g_object_unref (grip->_priv->title_layout); + grip->_priv->title_layout = NULL; + } g_free (grip->_priv->title); - g_object_unref (grip->_priv->title_layout); - grip->_priv->title_layout = NULL; grip->_priv->title = NULL; ensure_title_and_icon_pixbuf (grip); gtk_widget_queue_draw (GTK_WIDGET (grip)); -- cgit v1.2.3