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

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

Issue 633923002: explicitly delete our c++ window on 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/SkNSView.h ('k') | src/views/mac/SkSampleNSView.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/mac/SkNSView.mm
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm
index 67141679dbd8eaffc2e8515f5095e4c5eef95e81..e1e03d670b1e57e6c3a2a10d5fc14acd1b2af3bd 100644
--- a/src/views/mac/SkNSView.mm
+++ b/src/views/mac/SkNSView.mm
@@ -118,12 +118,17 @@ SK_COMPILE_ASSERT(SK_SUPPORT_GPU, not_implemented_for_non_gpu_build);
}
- (void)dealloc {
- delete fWind;
+ [self freeNativeWind];
self.fGLContext = nil;
self.fTitle = nil;
[super dealloc];
}
+- (void)freeNativeWind {
+ delete fWind;
+ fWind = nil;
+}
+
////////////////////////////////////////////////////////////////////////////////
- (void)drawSkia {
« no previous file with comments | « src/views/mac/SkNSView.h ('k') | src/views/mac/SkSampleNSView.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698