0001-Fix-memory-management-issue.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From c8bbdf191e486317ebde2f36b0e9b555e4c44b6d Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Thu, 11 Apr 2013 12:37:48 +0200
  4. Subject: [PATCH 1/3] Fix memory management issue
  5. ---
  6. Classes/AQGridViewCell.m | 1 +
  7. Classes/AQGridViewUpdateInfo.m | 1 +
  8. 2 files changed, 2 insertions(+)
  9. diff --git a/Classes/AQGridViewCell.m b/Classes/AQGridViewCell.m
  10. index 7cc9b68..837586f 100644
  11. --- a/Classes/AQGridViewCell.m
  12. +++ b/Classes/AQGridViewCell.m
  13. @@ -98,6 +98,7 @@
  14. {
  15. if ( _selectionColorInfo != NULL )
  16. CFRelease( _selectionColorInfo );
  17. + [super dealloc];
  18. }
  19. - (NSComparisonResult) compareOriginAgainstCell: (AQGridViewCell *) otherCell
  20. diff --git a/Classes/AQGridViewUpdateInfo.m b/Classes/AQGridViewUpdateInfo.m
  21. index 9bf5148..12d7665 100644
  22. --- a/Classes/AQGridViewUpdateInfo.m
  23. +++ b/Classes/AQGridViewUpdateInfo.m
  24. @@ -70,6 +70,7 @@
  25. free( _oldToNewIndexMap );
  26. if ( _newToOldIndexMap != NULL )
  27. free( _newToOldIndexMap );
  28. + [super dealloc];
  29. }
  30. - (NSMutableArray *) updateItemArrayForAction: (AQGridViewUpdateAction) action
  31. --
  32. 1.7.12.4 (Apple Git-37)