Permalink
Browse files

Merge pull request #1485 from cmichal2/v1.2.x-gc

Fix leak of gc's in gtkagg backend
  • Loading branch information...
mdboom committed Nov 12, 2012
2 parents 21b44d3 + 765928a commit 1513f4acdf4c1f7fd785b8e93a2e291d86cc5b92
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/_gtkagg.cpp
View
@@ -1,3 +1,4 @@
/* -*- mode: c++; c-basic-offset: 4 -*- */
#include <pygobject.h>
@@ -121,6 +122,7 @@ class _gtkagg_module : public Py::ExtensionModule<_gtkagg_module>
destbuffer,
deststride);
gdk_gc_destroy(gc);
if (needfree)
{
delete [] destbuffer;

0 comments on commit 1513f4a

Please sign in to comment.