From 62f59389a48fc8676329170c92ea7709ce5d9acb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 5 Mar 2012 21:27:18 +0100 Subject: IPHONE: Send dealloc message to iPhoneView's superclass at the end of dealloc. --- backends/platform/iphone/iphone_video.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/platform/iphone/iphone_video.mm') diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm index 5b8d28e819..5b78237ff7 100644 --- a/backends/platform/iphone/iphone_video.mm +++ b/backends/platform/iphone/iphone_video.mm @@ -234,8 +234,6 @@ const char *iPhone_getDocumentsDir() { } - (void)dealloc { - [super dealloc]; - if (_keyboardView != nil) { [_keyboardView dealloc]; } @@ -243,6 +241,8 @@ const char *iPhone_getDocumentsDir() { _videoContext.screenTexture.free(); _videoContext.overlayTexture.free(); _videoContext.mouseTexture.free(); + + [super dealloc]; } - (void)drawRect:(CGRect)frame { -- cgit v1.2.3