diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-10-14 18:20:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-10 18:40:47 +0900 |
commit | 5dab6232ef3b3715630cf88eb40c4c6021e65f07 (patch) | |
tree | e3938446c1aa5e80685f911aac73ebc1fc9832a8 /superkaramba/src/karamba_python.h | |
parent | 2e211499d4ffb2b89618ec79915f543cd898d2ab (diff) | |
download | tdeutils-5dab6232ef3b3715630cf88eb40c4c6021e65f07.tar.gz tdeutils-5dab6232ef3b3715630cf88eb40c4c6021e65f07.zip |
superkaramba: fixed SEGV when loading python scripts.
This resolves issue #43.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'superkaramba/src/karamba_python.h')
-rw-r--r-- | superkaramba/src/karamba_python.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/superkaramba/src/karamba_python.h b/superkaramba/src/karamba_python.h index b3f7a0a..5227d6d 100644 --- a/superkaramba/src/karamba_python.h +++ b/superkaramba/src/karamba_python.h @@ -45,10 +45,8 @@ protected: PyObject *pDict; static PyThreadState* mainThreadState; - void getLock(PyThreadState** myThreadState); PyObject* getFunc(const char* function); - void releaseLock(PyThreadState* myThreadState); - bool callObject(const char* func, PyObject* pArgs, bool lock=true); + bool callObject(const char* func, PyObject* pArgs); public: KarambaPython(const ThemeFile& theme, bool reloading); |