Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several memory leaks. #12

Merged
merged 2 commits into from Jul 15, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions Additions/UIView-KIFAdditions.m
Expand Up @@ -309,6 +309,7 @@ - (void)dragFromPoint:(CGPoint)startPoint toPoint:(CGPoint)endPoint;
}

[touchDown release];
[touchDrag release];
[touchUp release];
}

Expand Down Expand Up @@ -403,7 +404,9 @@ - (UIEvent *)_eventWithTouch:(UITouch *)touch;
eventProxy->type = 3001;

KIFTouchEvent *touchEvent = (KIFTouchEvent *)event;
NSSet *allTouches = [event allTouches];
[touchEvent _clearTouches];
[allTouches makeObjectsPerformSelector:@selector(autorelease)];
[touchEvent _addTouch:touch forDelayedDelivery:NO];
[touchEvent _setGSEvent:(struct __GSEvent *)eventProxy];
[touchEvent _addGestureRecognizersForView:touch.view toTouch:touch];
Expand Down
10 changes: 10 additions & 0 deletions Classes/KIFTestStep.m
Expand Up @@ -360,6 +360,16 @@ - (id)init;
return self;
}

- (void)dealloc;
{
[executionBlock release];
executionBlock = nil;
[description release];
description = nil;

[super dealloc];
}

#pragma mark Public Methods

- (KIFTestStepResult)executeAndReturnError:(NSError **)error
Expand Down