Revision: 4206
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4206&view=rev
Author:   amaxwell
Date:     2008-07-14 09:44:40 -0700 (Mon, 14 Jul 2008)

Log Message:
-----------
fix leaks

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-07-14 02:53:19 UTC (rev 4205)
+++ trunk/SKPDFView.m   2008-07-14 16:44:40 UTC (rev 4206)
@@ -907,7 +907,7 @@
         bounds = SKConstrainRect(bounds, [page boundsForBox:[self 
displayBox]]);
         
         if (preferNote) {
-            newAnnotation = [[SKNPDFAnnotationNote alloc] 
initSkimNoteWithBounds:bounds];
+            newAnnotation = [[[SKNPDFAnnotationNote alloc] 
initSkimNoteWithBounds:bounds] autorelease];
             NSMutableAttributedString *attrString = nil;
             if ([pboardType isEqualToString:NSStringPboardType])
                 attrString = [[[NSMutableAttributedString alloc] 
initWithString:[pboard stringForType:NSStringPboardType]] autorelease];
@@ -921,7 +921,7 @@
             }
             [(SKNPDFAnnotationNote *)newAnnotation setText:attrString];
         } else {
-            newAnnotation = [[PDFAnnotationFreeText alloc] 
initSkimNoteWithBounds:bounds];
+            newAnnotation = [[[PDFAnnotationFreeText alloc] 
initSkimNoteWithBounds:bounds] autorelease];
             [newAnnotation setString:[pboard 
stringForType:NSStringPboardType]];
         }
         


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

Reply via email to