Skip to content
Permalink
Browse files

Revert "Other check for null pointer before calling decref"

This reverts commit 9b2be7a.
  • Loading branch information
nyalldawson committed May 23, 2016
1 parent 68e5f5c commit 707ff90d485f18fe5cd7a2542335ba8472dc4baf
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/python/qgspythonutilsimpl.cpp
@@ -577,13 +577,11 @@ bool QgsPythonUtilsImpl::evalString( const QString& command, QString& result )
bool success = nullptr != res;

// TODO: error handling
if ( res )
{
if ( success )
result = PyObjectToQString( res );

Py_XDECREF( res );
}
if ( success )
result = PyObjectToQString( res );

Py_XDECREF( res );

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

0 comments on commit 707ff90

Please sign in to comment.
You can’t perform that action at this time.