diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-11 05:15:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-11 05:15:13 +0400 |
commit | 43c83e24588dc1251353b1d13ca4cf112f8b3117 (patch) | |
tree | c792fee6b80695669cc855e8a8f7e290d4965d5b /intern/ghost/test/gears | |
parent | 44ec0b0aabef4c8d054680281747ea33320f0961 (diff) |
fix double free in ghost c++ gears test program.
Diffstat (limited to 'intern/ghost/test/gears')
-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 |