From 2c29c67df044cc706aec730c4eb85fc85c29c604 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sat, 25 Apr 2020 14:10:13 -0700 Subject: [PATCH] Cleanup on exit --- samples/material_sandbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/material_sandbox.cpp b/samples/material_sandbox.cpp index 81790a076b..d1ee0823f1 100644 --- a/samples/material_sandbox.cpp +++ b/samples/material_sandbox.cpp @@ -191,8 +191,11 @@ static void cleanup(Engine* engine, View*, Scene*) { g_meshSet.reset(nullptr); engine->destroy(g_params.light); + engine->destroy(g_params.spotLight); + EntityManager& em = EntityManager::get(); em.destroy(g_params.light); + em.destroy(g_params.spotLight); } static void setup(Engine* engine, View*, Scene* scene) {