mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 07:38:09 +00:00
Possible fix for crashes when releasing views from memory pressure
This commit is contained in:
parent
88d1801a89
commit
430004c337
4 changed files with 5 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -54,15 +54,8 @@
|
|||
[self initUICamSwitch];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
- (void)dealloc {
|
||||
[super dealloc];
|
||||
[preview release];
|
||||
}
|
||||
|
||||
|
||||
#pragma mark -
|
||||
|
||||
-(void) touchUp:(id) sender {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,6 @@
|
|||
@interface UIEraseButton : UILongTouchButton<UILongTouchButtonDelegate> {
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) IBOutlet UITextField* addressField;
|
||||
@property (nonatomic, assign) IBOutlet UITextField* addressField;
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@
|
|||
}
|
||||
|
||||
- (void)dealloc {
|
||||
addressField = nil;
|
||||
[super dealloc];
|
||||
[addressField release];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue