Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 765928a

Browse files
committed
Fix leak of gc's in gtkagg backend
1 parent 21b44d3 commit 765928a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_gtkagg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/* -*- mode: c++; c-basic-offset: 4 -*- */
23

34
#include <pygobject.h>
@@ -121,6 +122,7 @@ class _gtkagg_module : public Py::ExtensionModule<_gtkagg_module>
121122
destbuffer,
122123
deststride);
123124

125+
gdk_gc_destroy(gc);
124126
if (needfree)
125127
{
126128
delete [] destbuffer;

0 commit comments

Comments
 (0)