diff --git a/src/KalGridView.m b/src/KalGridView.m index 798d73e..22d072c 100644 --- a/src/KalGridView.m +++ b/src/KalGridView.m @@ -82,6 +82,7 @@ - (void)setHighlightedTile:(KalTileView *)tile { if (highlightedTile != tile) { highlightedTile.highlighted = NO; + [highlightedTile release]; highlightedTile = [tile retain]; tile.highlighted = YES; [tile setNeedsDisplay]; @@ -92,6 +93,7 @@ - (void)setSelectedTile:(KalTileView *)tile { if (selectedTile != tile) { selectedTile.selected = NO; + [selectedTile release]; selectedTile = [tile retain]; tile.selected = YES; [delegate didSelectDate:tile.date];