Skip to content

Instantly share code, notes, and snippets.

@muhku
Created May 17, 2010 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muhku/404201 to your computer and use it in GitHub Desktop.
Save muhku/404201 to your computer and use it in GitHub Desktop.
diff --git a/src/TapkuLibrary/TKCalendarMonthView.m b/src/TapkuLibrary/TKCalendarMonthView.m
index 0de7bc8..02600fd 100644
--- a/src/TapkuLibrary/TKCalendarMonthView.m
+++ b/src/TapkuLibrary/TKCalendarMonthView.m
@@ -247,11 +247,12 @@
if([obj isMemberOfClass:[TKMonthGridView class]]){
//NSLog(@"RESUE");
[(TKMonthGridView*)obj setStartDate:newDate today:todayNumber marks:ar];
-
+ [ar release];
}else{
[obj release];
//NSLog(@"HIT");
obj = [[TKMonthGridView alloc] initWithStartDate:newDate today:todayNumber marks:ar];
+ [ar release];
}
@@ -1111,4 +1112,4 @@
}
-@end
\ No newline at end of file
+@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment