]>
Commit | Line | Data |
---|---|---|
247d005a MK |
1 | --- ./CXX/Python2/ExtensionOldType.hxx-memleak_fix 2011-07-26 17:32:57.230429675 +0200 |
2 | +++ ./CXX/Python2/ExtensionOldType.hxx 2011-07-26 17:34:05.384066472 +0200 | |
3 | @@ -178,7 +178,7 @@ namespace Py | |
4 | Tuple self( 2 ); | |
5 | ||
6 | self[0] = Object( this ); | |
7 | - self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | |
8 | + self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | |
9 | ||
10 | PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() ); | |
11 | ||
12 | --- ./CXX/Python2/ExtensionModule.hxx-memleak_fix 2011-07-26 17:34:21.287470428 +0200 | |
13 | +++ ./CXX/Python2/ExtensionModule.hxx 2011-07-26 17:35:49.331193448 +0200 | |
14 | @@ -139,8 +139,8 @@ namespace Py | |
15 | static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc ); | |
16 | ||
17 | Tuple args( 2 ); | |
18 | - args[0] = Object( self ); | |
19 | - args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | |
20 | + args[0] = Object( self, true ); | |
21 | + args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | |
22 | ||
23 | PyObject *func = PyCFunction_New | |
24 | ( | |
25 | --- ./CXX/Python3/ExtensionModule.hxx.memleak_fix 2011-07-26 18:55:45.910115406 +0200 | |
26 | +++ ./CXX/Python3/ExtensionModule.hxx 2011-07-26 18:56:55.327162541 +0200 | |
27 | @@ -137,8 +137,8 @@ namespace Py | |
28 | static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc ); | |
29 | ||
30 | Tuple args( 2 ); | |
31 | - args[0] = Object( self ); | |
32 | - args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | |
33 | + args[0] = Object( self, true ); | |
34 | + args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | |
35 | ||
36 | PyObject *func = PyCFunction_New | |
37 | ( | |
38 | --- ./CXX/Python3/ExtensionOldType.hxx.memleak_fix 2011-07-26 18:54:39.309749026 +0200 | |
39 | +++ ./CXX/Python3/ExtensionOldType.hxx 2011-07-26 18:55:25.346669091 +0200 | |
40 | @@ -178,7 +178,7 @@ namespace Py | |
41 | Tuple self( 2 ); | |
42 | ||
43 | self[0] = Object( this ); | |
44 | - self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | |
45 | + self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | |
46 | ||
47 | PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() ); | |
48 |