[gtk+/rendering-cleanup] Add missing call to cairo_destroy()



commit 156a819836559b33e3ab92e7014df644f9eb40ce
Author: Kristian Rietveld <kris gtk org>
Date:   Thu Sep 23 15:39:27 2010 +0200

    Add missing call to cairo_destroy()

 gtk/gtkcellview.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 475a9f1..eeb9aa5 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -463,7 +463,10 @@ gtk_cell_view_expose (GtkWidget      *widget,
   if (cellview->priv->displayed_row)
     gtk_cell_view_set_cell_data (cellview);
   else if (cellview->priv->model)
-    return FALSE;
+    {
+      cairo_destroy (cr);
+      return FALSE;
+    }
 
   /* render cells */
   area = allocation;



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