mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +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 "PythonAPI.h"
|
||||||
#include "PythonManager.h"
|
#include "PythonManager.h"
|
||||||
|
#include "Cutter.h"
|
||||||
|
|
||||||
#include <marshal.h>
|
#include <marshal.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -83,6 +84,9 @@ void PythonManager::shutdown()
|
|||||||
{
|
{
|
||||||
emit willShutDown();
|
emit willShutDown();
|
||||||
|
|
||||||
|
// This is necessary to prevent a segfault when the CutterCore instance is deleted after the Shiboken::BindingManager
|
||||||
|
Core()->setProperty("_PySideInvalidatePtr", QVariant());
|
||||||
|
|
||||||
restoreThread();
|
restoreThread();
|
||||||
|
|
||||||
Py_Finalize();
|
Py_Finalize();
|
||||||
|
Loading…
Reference in New Issue
Block a user