Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: src/views/mac/skia_mac.mm

Issue 636723002: override applicationShouldTerminate so we can cleanup when we quit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/views/mac/SampleAppDelegate.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/mac/skia_mac.mm
diff --git a/src/views/mac/skia_mac.mm b/src/views/mac/skia_mac.mm
index e3c31c40f6084ca555c7419f2e98aa8efe5394c0..393e6d81414a7499763b2946dd747f361f57d01e 100644
--- a/src/views/mac/skia_mac.mm
+++ b/src/views/mac/skia_mac.mm
@@ -14,7 +14,11 @@ int main(int argc, char *argv[]) {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
application_init();
int retVal = NSApplicationMain(argc, (const char **)argv);
+
+#if 0
+ // we don't expect NSApplicationMain to return. See our applicationShouldTerminate handler.
application_term();
[pool release];
+#endif
return retVal;
}
« no previous file with comments | « src/views/mac/SampleAppDelegate.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698