Skip to content

Commit 206100b

Browse files
committed
Merged revisions 8810 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8810 | mdboom | 2010-11-30 12:20:14 -0500 (Tue, 30 Nov 2010) | 2 lines Fix memory leak in PyCXX. ........ svn path=/trunk/matplotlib/; revision=8811
1 parent ff2b1f3 commit 206100b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CXX/Python2/ExtensionOldType.hxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace Py
173173
Tuple self( 2 );
174174

175175
self[0] = Object( this );
176-
self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
176+
self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
177177

178178
PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() );
179179

0 commit comments

Comments
 (0)