From 871ee13e058db2bda986be69efe36d3be35ed359 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 22 Jul 2013 20:09:38 -0700 Subject: [PATCH] Merge branch 'master' of https://github.com/aothms/IfcOpenShell.git --- src/ifcwrap/IfcPython.i | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index e0e48cfcb9..984086209a 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -54,6 +54,7 @@ const Argument& arg = *($1.second); const ArgumentType type = $1.first; if (arg.isNull()) { + Py_INCREF(Py_None); $result = Py_None; } else { switch(type) {