mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
Fix segfault when CutterCore is destructed
This commit is contained in:
parent
2b8a0df4cc
commit
f5fb9f364f
@ -2,6 +2,7 @@
|
||||
|
||||
#include "PythonAPI.h"
|
||||
#include "PythonManager.h"
|
||||
#include "Cutter.h"
|
||||
|
||||
#include <marshal.h>
|
||||
#include <QDebug>
|
||||
@ -83,6 +84,9 @@ void PythonManager::shutdown()
|
||||
{
|
||||
emit willShutDown();
|
||||
|
||||
// This is necessary to prevent a segfault when the CutterCore instance is deleted after the Shiboken::BindingManager
|
||||
Core()->setProperty("_PySideInvalidatePtr", QVariant());
|
||||
|
||||
restoreThread();
|
||||
|
||||
Py_Finalize();
|
||||
|
Loading…
Reference in New Issue
Block a user