mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:02:29 +00:00
Increase reference count when returning Py_None
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
const Argument& arg = *($1.second);
|
const Argument& arg = *($1.second);
|
||||||
const ArgumentType type = $1.first;
|
const ArgumentType type = $1.first;
|
||||||
if (arg.isNull()) {
|
if (arg.isNull()) {
|
||||||
|
Py_INCREF(Py_None);
|
||||||
$result = Py_None;
|
$result = Py_None;
|
||||||
} else {
|
} else {
|
||||||
switch(type) {
|
switch(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user