Skip to content

Commit f20bbb6

Browse files
committed
fix block men management
1 parent 690a897 commit f20bbb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/objc/FirebaseUIChat/FIRSample.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ - (id)initWithTitle:(NSString *)title
2424
sampleDescription:(NSString *)description
2525
controller:(FIRControllerBlock)block {
2626
if (self = [self init]) {
27-
_title = title;
28-
_sampleDescription = description;
29-
_controllerBlock = block;
27+
_title = [title copy];
28+
_sampleDescription = [description copy];
29+
_controllerBlock = [block copy];
3030
}
3131

3232
return self;

0 commit comments

Comments
 (0)