diff --git a/Classes/LinphoneUI/UIEditableTableViewCell.m b/Classes/LinphoneUI/UIEditableTableViewCell.m index 1ce7eccb3..46893b7a0 100644 --- a/Classes/LinphoneUI/UIEditableTableViewCell.m +++ b/Classes/LinphoneUI/UIEditableTableViewCell.m @@ -31,10 +31,11 @@ { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { - self.detailTextField = [[UITextField alloc] init]; - [self.detailTextField setHidden:TRUE]; - [self.detailTextField setClearButtonMode: UITextFieldViewModeWhileEditing]; - [self.detailTextField setContentVerticalAlignment: UIControlContentVerticalAlignmentCenter]; + UITextField* tf = [[UITextField alloc] init]; + [tf setHidden:TRUE]; + [tf setClearButtonMode: UITextFieldViewModeWhileEditing]; + [tf setContentVerticalAlignment: UIControlContentVerticalAlignmentCenter]; + self.detailTextField = tf; UIFont *font = [UIFont fontWithName:@"Helvetica-Bold" size:[UIFont systemFontSize]]; [self.detailTextLabel setFont:font]; @@ -42,10 +43,16 @@ [self.contentView addSubview:detailTextField]; // a vertical separator that will come between the text and detailed text - self.verticalSep = [[UIView alloc] initWithFrame:CGRectMake(80, 5, 1, 34)]; - verticalSep.backgroundColor = [UIColor lightGrayColor]; - [self.verticalSep setHidden:TRUE]; + UIView* v = [[UIView alloc] initWithFrame:CGRectMake(80, 5, 1, 34)]; + [v setBackgroundColor:[UIColor lightGrayColor]]; + [v setHidden:TRUE]; + + self.verticalSep = v; + [self.contentView addSubview:verticalSep]; + + [tf release]; + [v release]; } return self; } diff --git a/Classes/Utils/UACellBackgroundView/UACellBackgroundView.m b/Classes/Utils/UACellBackgroundView/UACellBackgroundView.m index d58d03fef..8a5bceba9 100644 --- a/Classes/Utils/UACellBackgroundView/UACellBackgroundView.m +++ b/Classes/Utils/UACellBackgroundView/UACellBackgroundView.m @@ -242,7 +242,6 @@ static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWi CGContextRestoreGState(c); } - CGColorSpaceRelease(myColorspace); CGGradientRelease(myGradient); return; }