Possible fix for crashes when releasing views from memory pressure

This commit is contained in:
Guillaume BIENKOWSKI 2015-05-12 17:36:22 +02:00
parent 88d1801a89
commit 430004c337
4 changed files with 5 additions and 13 deletions

View file

@ -20,9 +20,8 @@
#import <UIKit/UIKit.h>
@interface UICamSwitch : UIButton {
@private
@interface UICamSwitch : UIButton
@property (nonatomic, assign) IBOutlet UIView* preview;
}
@property (nonatomic, retain) IBOutlet UIView* preview;
@end

View file

@ -54,15 +54,8 @@
[self initUICamSwitch];
}
return self;
}
- (void)dealloc {
[super dealloc];
[preview release];
}
#pragma mark -
-(void) touchUp:(id) sender {

View file

@ -24,6 +24,6 @@
@interface UIEraseButton : UILongTouchButton<UILongTouchButtonDelegate> {
}
@property (nonatomic, retain) IBOutlet UITextField* addressField;
@property (nonatomic, assign) IBOutlet UITextField* addressField;
@end

View file

@ -56,8 +56,8 @@
}
- (void)dealloc {
addressField = nil;
[super dealloc];
[addressField release];
}