diff options
Diffstat (limited to 'src/libs/module')
-rw-r--r-- | src/libs/module/World.hpp | 5 | ||||
-rw-r--r-- | src/libs/module/global.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/libs/module/World.hpp b/src/libs/module/World.hpp index a1ca9a68..29434069 100644 --- a/src/libs/module/World.hpp +++ b/src/libs/module/World.hpp @@ -57,9 +57,8 @@ struct World { Redland::World* rdf_world; - EngineInterface* engine; - - Engine* local_engine; + SharedPtr<EngineInterface> engine; + SharedPtr<Engine> local_engine; }; diff --git a/src/libs/module/global.cpp b/src/libs/module/global.cpp index 21c36575..a8a2720d 100644 --- a/src/libs/module/global.cpp +++ b/src/libs/module/global.cpp @@ -50,8 +50,8 @@ get_world() world->lv2_features = new LV2Features(); slv2_world_load_all(world->slv2_world); #endif - world->engine = NULL; - world->local_engine = NULL; + world->engine.reset(); + world->local_engine.reset(); } return world; |