Skip to content

Commit 707ff90

Browse files
committed
Revert "Other check for null pointer before calling decref"
This reverts commit 9b2be7a.
1 parent 68e5f5c commit 707ff90

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/python/qgspythonutilsimpl.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -577,13 +577,11 @@ bool QgsPythonUtilsImpl::evalString( const QString& command, QString& result )
577577
bool success = nullptr != res;
578578

579579
// TODO: error handling
580-
if ( res )
581-
{
582-
if ( success )
583-
result = PyObjectToQString( res );
584580

585-
Py_XDECREF( res );
586-
}
581+
if ( success )
582+
result = PyObjectToQString( res );
583+
584+
Py_XDECREF( res );
587585

588586
// we are done calling python API, release global interpreter lock
589587
PyGILState_Release( gstate );

0 commit comments

Comments
 (0)