From f1d9b005de6b1a15ba5e1014ca0c30895588512c Mon Sep 17 00:00:00 2001 From: tedjk Date: Tue, 12 May 2015 10:02:29 +0200 Subject: [PATCH] moved python module to local folder --- juci/api.cc | 7 +++++++ juci/api.h | 1 + 2 files changed, 8 insertions(+) diff --git a/juci/api.cc b/juci/api.cc index 2363e41..0ae1587 100644 --- a/juci/api.cc +++ b/juci/api.cc @@ -12,6 +12,13 @@ PluginApi::PluginApi(Menu::Controller& menu_ctl_, InitPlugins(); } +PluginApi::~PluginApi() { + delete menu_; + delete notebook_; + menu_ = NULL; + notebook_ = NULL; +} + std::string PluginApi::ProjectPath() { int MAXPATHLEN = 50; char temp[MAXPATHLEN]; diff --git a/juci/api.h b/juci/api.h index 5b09f0a..900d206 100644 --- a/juci/api.h +++ b/juci/api.h @@ -13,6 +13,7 @@ class PluginApi { public: PluginApi(Menu::Controller&, Notebook::Controller&); + ~PluginApi(); static Menu::Controller* menu_; static Notebook::Controller* notebook_; static void InitPlugins();