summaryrefslogtreecommitdiff
path: root/kde-apps/kig/files/kig-19.08.3-scripter-crash.patch
blob: 9540e9044f3b33b93326a751ebcedd7fee3a5efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 211f8501ec4cf77ed68253783d58a662b5513612 Mon Sep 17 00:00:00 2001
From: Maurizio Paolini <paolini@dmf.unicatt.it>
Date: Sat, 11 Jan 2020 19:50:33 +0100
Subject: Fix crash upon exit after transition python2 -> python3 when using
 scripting (bug #416037)

Reviewed By: kkevin
Differential Revision: https://phabricator.kde.org/D12833
CCBUG: 416037
---
 scripting/python_scripter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripting/python_scripter.cc b/scripting/python_scripter.cc
index bb5db39..3edec77 100644
--- a/scripting/python_scripter.cc
+++ b/scripting/python_scripter.cc
@@ -427,8 +427,8 @@ PythonScripter::PythonScripter()
 PythonScripter::~PythonScripter()
 {
   PyErr_Clear();
-  Py_Finalize();
   delete d;
+  Py_FinalizeEx();
 }
 
 class CompiledPythonScript::Private
-- 
cgit v1.1