diff options
Diffstat (limited to 'intern/ghost/test/gears/GHOST_Test.cpp')
-rw-r--r-- | intern/ghost/test/gears/GHOST_Test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/ghost/test/gears/GHOST_Test.cpp b/intern/ghost/test/gears/GHOST_Test.cpp index 1e641a8643c..6709956e2dd 100644 --- a/intern/ghost/test/gears/GHOST_Test.cpp +++ b/intern/ghost/test/gears/GHOST_Test.cpp @@ -715,13 +715,16 @@ int main(int /*argc*/, char ** /*argv*/) // Add the application as event consumer fSystem->addEventConsumer(&app); - + // Enter main loop while (!app.m_exitRequested) { //printf("main: loop\n"); fSystem->processEvents(true); fSystem->dispatchEvents(); } + + // Remove so ghost doesn't do a double free + fSystem->removeEventConsumer(&app); } // Dispose the system |