[gnome-control-center/extensible-shell] [shell] ensure the pango layout is disposed



commit 7186088b330b08a3475de08f39f8e53678345270
Author: Thomas Wood <thomas wood intel com>
Date:   Sat Jan 30 10:49:35 2010 +0000

    [shell] ensure the pango layout is disposed

 shell/shell-search-renderer.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/shell/shell-search-renderer.c b/shell/shell-search-renderer.c
index 6d0ca9f..08cada5 100644
--- a/shell/shell-search-renderer.c
+++ b/shell/shell-search-renderer.c
@@ -95,6 +95,14 @@ shell_search_renderer_set_property (GObject      *object,
 static void
 shell_search_renderer_dispose (GObject *object)
 {
+  ShellSearchRendererPrivate *priv = SHELL_SEARCH_RENDERER (object)->priv;
+
+  if (priv->layout)
+    {
+      g_object_unref (priv->layout);
+      priv->layout = NULL;
+    }
+
   G_OBJECT_CLASS (shell_search_renderer_parent_class)->dispose (object);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]