Revision: 4230
http://skim-app.svn.sourceforge.net/skim-app/?rev=4230&view=rev
Author: hofman
Date: 2008-07-16 23:58:56 +0000 (Wed, 16 Jul 2008)
Log Message:
-----------
add autorelease pool to be sure
Modified Paths:
--------------
trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2008-07-16 11:14:25 UTC
(rev 4229)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2008-07-16 23:58:56 UTC
(rev 4230)
@@ -94,6 +94,7 @@
}
+ (void)load {
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >=
MAC_OS_X_VERSION_10_5
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4 &&
[NSGarbageCollector defaultCollector])
SkimNotes = [[NSHashTable alloc]
initWithOptions:NSHashTableZeroingWeakMemory capacity:0];
@@ -120,6 +121,7 @@
#endif
SkimNotes = (NSMutableSet *)CFSetCreateMutable(kCFAllocatorDefault, 0,
NULL);
}
+ [pool release];
}
- (id)initSkimNoteWithBounds:(NSRect)bounds {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit