Skip to content

Commit 3bc3331

Browse files
committed
Increase reference count when returning Py_None
1 parent 1065741 commit 3bc3331

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ifcwrap/IfcPython.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
const Argument& arg = *($1.second);
5555
const ArgumentType type = $1.first;
5656
if (arg.isNull()) {
57+
Py_INCREF(Py_None);
5758
$result = Py_None;
5859
} else {
5960
switch(type) {

0 commit comments

Comments
 (0)