From fb35cbef86a3f7aaf408f153c174bfa360f023be Mon Sep 17 00:00:00 2001 From: Snowmanzzz Date: Sun, 22 Sep 2013 10:19:17 +0800 Subject: [PATCH] fix in ios7 Issue #33 --- .../Controller/EGOPhotoViewController/EGOPhotoViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EGOPhotoViewer/Controller/EGOPhotoViewController/EGOPhotoViewController.m b/EGOPhotoViewer/Controller/EGOPhotoViewController/EGOPhotoViewController.m index 0585d25..98e6be3 100644 --- a/EGOPhotoViewer/Controller/EGOPhotoViewController/EGOPhotoViewController.m +++ b/EGOPhotoViewer/Controller/EGOPhotoViewController/EGOPhotoViewController.m @@ -1050,7 +1050,7 @@ - (void)dealloc { _captionView=nil; [_photoViews release], _photoViews=nil; [_photoSource release], _photoSource=nil; - [_scrollView release], _scrollView=nil; + _scrollView.delegate = nil, [_scrollView release], _scrollView=nil; [_oldToolBarTintColor release], _oldToolBarTintColor = nil; [_oldNavBarTintColor release], _oldNavBarTintColor = nil;