[cairo-commit] rcairo/src rb_cairo_context.c,1.16,1.17

Kouhei Sutou commit at pdx.freedesktop.org
Thu Dec 27 23:49:07 PST 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv18771/src

Modified Files:
	rb_cairo_context.c 
Log Message:
* src/rb_cairo_context.c (cr_pop_group): fixed a memory leak bug.
  Reported by Binzo. Thanks!!!
* README: added Binzo to Thanks list.


Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- rb_cairo_context.c	20 May 2007 08:46:07 -0000	1.16
+++ rb_cairo_context.c	28 Dec 2007 07:49:05 -0000	1.17
@@ -125,11 +125,14 @@
 static VALUE
 cr_pop_group (VALUE self)
 {
+  VALUE rb_pattern;
   cairo_pattern_t *pattern;
 
   pattern = cairo_pop_group (_SELF);
   cr_check_status (_SELF);
-  return CRPATTERN2RVAL (pattern);
+  rb_pattern = CRPATTERN2RVAL (pattern);
+  cairo_pattern_destroy (pattern);
+  return rb_pattern;
 }
 
 static VALUE



More information about the cairo-commit mailing list