diff --git a/wrapping/python/CxPybind/CxPybind/CxPybind.hpp b/wrapping/python/CxPybind/CxPybind/CxPybind.hpp index 4c1b71f62c..8fc3f9861b 100644 --- a/wrapping/python/CxPybind/CxPybind/CxPybind.hpp +++ b/wrapping/python/CxPybind/CxPybind/CxPybind.hpp @@ -199,12 +199,12 @@ class Internals Application* getApp() { - return m_App; + return m_App.get(); } const Application* getApp() const { - return m_App; + return m_App.get(); } template @@ -281,7 +281,7 @@ class Internals std::unordered_map m_ParameterConversionMap; std::unordered_map> m_PluginFilterMap; std::unordered_map> m_PythonPlugins; - Application* m_App; + std::shared_ptr m_App; }; inline py::dict ConvertArgsToDict(const Internals& internals, const Parameters& parameters, const Arguments& args)