Re: Cairo based engine api for GTK+ 3.0



And a few more....
>From 0bd1476a92b229e326942862f9046e50dc5aea76 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris chris-wilson co uk>
Date: Thu, 18 Jun 2009 22:03:22 +0100
Subject: [PATCH] [style] A few more sneaky missing cairo_destroy().

---
 gtk/gtkstyle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 73d9eab..510b312 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2748,6 +2748,7 @@ gtk_default_draw_shadow (GtkStyle      *style,
   switch (shadow_type)
     {
     case GTK_SHADOW_NONE:
+      cairo_destroy (cr);
       return;
     case GTK_SHADOW_IN:
     case GTK_SHADOW_ETCHED_IN:
@@ -4394,6 +4395,7 @@ gtk_default_draw_box_gap (GtkStyle       *style,
   switch (shadow_type)
     {
     case GTK_SHADOW_NONE:
+      cairo_destroy (cr);
       return;
     case GTK_SHADOW_IN:
       color1 = style->dark[state_type];
@@ -4644,6 +4646,7 @@ gtk_default_draw_extension (GtkStyle       *style,
   switch (shadow_type)
     {
     case GTK_SHADOW_NONE:
+      cairo_destroy (cr);
       return;
     case GTK_SHADOW_IN:
       color1 = style->dark[state_type];
-- 
1.6.3.1





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