We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170d4a4 commit 50c3306Copy full SHA for 50c3306
1 file changed
src/PythonQtSignalReceiver.cpp
@@ -178,7 +178,10 @@ PythonQtSignalReceiver::PythonQtSignalReceiver(QObject* obj):PythonQtSignalRecei
178
179
PythonQtSignalReceiver::~PythonQtSignalReceiver()
180
{
181
+ // we need the GIL scope here, because the targets keep references to Python objects
182
+ PYTHONQT_GIL_SCOPE;
183
PythonQt::priv()->removeSignalEmitter(_obj);
184
+ _targets.clear();
185
}
186
187
0 commit comments