Skip to content
Snippets Groups Projects
Commit 258eee41 authored by Steve Streeting's avatar Steve Streeting
Browse files

osutil: avoid accidentally destroying the True object in isgui (issue2937)

Needed to use 'Py_RETURN_TRUE' instead of 'return Py_True' to avoid
reference count errors which would randomly crash the Python
executable during merge. This only happened when you had something
configured in merge-tools and the merge was large enough.
parent 106f8929
No related merge requests found
......@@ -523,5 +523,5 @@
if (dict != NULL) {
CFRelease(dict);
return Py_True;
Py_RETURN_TRUE;
} else {
......@@ -527,5 +527,5 @@
} else {
return Py_False;
Py_RETURN_FALSE;
}
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment