From c24374129631cedc9821caf6eee6e964bda67fe5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 27 Feb 2021 11:13:30 +0100 Subject: [PATCH] Gui: [skip ci] re-add removed Py_INCREF of module --- src/App/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 2f6bb886b0..812935cd76 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -340,6 +340,7 @@ Application::Application(std::map &mConfig) // Translate module PyObject* pTranslateModule = (new Base::Translate)->module().ptr(); + Py_INCREF(pTranslateModule); PyModule_AddObject(pAppModule, "Qt", pTranslateModule); //insert Units module