[cairo] [patch] gl: fix nsgl boilerplate memory leak

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Fri Jan 4 17:52:23 PST 2013


>From 1258961b23903569ec559acc041f7c2a935b96e8 Mon Sep 17 00:00:00 2001
From: Henry Song <hsong at sisa.samsung.com>
Date: Fri, 4 Jan 2013 17:49:36 -0800
Subject: [PATCH] gl: fix a memory leak in cairo-boilerplate-nsgl.m

---
 boilerplate/cairo-boilerplate-nsgl.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boilerplate/cairo-boilerplate-nsgl.m b/boilerplate/cairo-boilerplate-nsgl.m
index 0d6d458..f6ead00 100644
--- a/boilerplate/cairo-boilerplate-nsgl.m
+++ b/boilerplate/cairo-boilerplate-nsgl.m
@@ -60,6 +60,7 @@ _cairo_boilerplate_nsgl_cleanup (void *closure)
     cairo_device_destroy (gltc->device);

     [NSOpenGLContext clearCurrentContext];
+    [gltc->ctx release];
     [gltc->pool release];

     free (gltc);
--
1.8.0.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130105/cb9f0b1b/attachment.html>


More information about the cairo mailing list