From a6f4ac2dd39d09e9f360957e428946d157cec46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Wed, 22 May 2019 13:29:26 +0200 Subject: [PATCH] Lock Core in CutterCore::loadScript() (#1581) --- src/core/Cutter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index d2596bb8..e303f66c 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -2647,6 +2647,7 @@ QString CutterCore::bytesToHexString(const QByteArray &bytes) void CutterCore::loadScript(const QString &scriptname) { + CORE_LOCK(); r_core_task_sync_begin(core_); r_core_cmd_file(core_, scriptname.toUtf8().constData()); r_core_task_sync_end(core_);