Skip to content

Commit

Permalink
Send complete on dealloc a RACEventTrampoline
Browse files Browse the repository at this point in the history
  • Loading branch information
kkazuo committed Mar 15, 2013
1 parent c490f23 commit 21860f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReactiveCocoaFramework/ReactiveCocoa/RACEventTrampoline.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ - (void)rac_setDelegate:(id<UITextViewDelegate>)delegate {

@implementation RACEventTrampoline

@synthesize subject;
@synthesize proxy;
@synthesize delegateMethod;

Expand Down Expand Up @@ -83,6 +82,10 @@ + (instancetype)trampolineForTextView:(UITextView *)textView delegateMethod:(SEL
return trampoline;
}

- (void)dealloc {
[_subject sendCompleted];
}

- (id)init {
self = [super init];
if(self == nil) return nil;
Expand Down

0 comments on commit 21860f4

Please sign in to comment.