Revision: 4208
http://skim-app.svn.sourceforge.net/skim-app/?rev=4208&view=rev
Author: hofman
Date: 2008-07-14 10:14:00 -0700 (Mon, 14 Jul 2008)
Log Message:
-----------
fix leak
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-07-14 16:45:39 UTC (rev 4207)
+++ trunk/SKMainWindowController.m 2008-07-14 17:14:00 UTC (rev 4208)
@@ -1039,9 +1039,8 @@
- (void)setNotes:(NSArray *)newNotes {
NSMutableSet *old = (NSMutableSet *)CFSetCreateMutable(NULL, 0,
&SKPointerEqualObjectSetCallbacks);
NSMutableSet *new = (NSMutableSet *)CFSetCreateMutable(NULL, 0,
&SKPointerEqualObjectSetCallbacks);
-#warning fixme: removed and added are leaked
- NSMutableSet *removed = (NSMutableSet *)CFSetCreateMutableCopy(NULL, 0,
(CFSetRef)old);
- NSMutableSet *added = (NSMutableSet *)CFSetCreateMutableCopy(NULL, 0,
(CFSetRef)new);
+ NSMutableSet *removed;
+ NSMutableSet *added;
[old addObjectsFromArray:notes];
[new addObjectsFromArray:newNotes];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit