Permalink
Browse files

ofAppRunner: notify exit before terminating resources

Closes #770
  • Loading branch information...
1 parent d8a7625 commit be2b2606e2d74567abea1d30b8be0000f1103465 @arturoc arturoc committed Oct 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 libs/openFrameworks/app/ofAppRunner.cpp
@@ -126,6 +126,8 @@ void ofSetupOpenGL(int w, int h, int screenMode){
void ofExitCallback(){
+ ofNotifyExit();
+
//------------------------
// try to close engine if needed:
ofSoundShutdown();
@@ -148,7 +150,6 @@ void ofExitCallback(){
timeEndPeriod(1);
#endif
- ofNotifyExit();
}
//--------------------------------------

0 comments on commit be2b260

Please sign in to comment.