Revision: 5578
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5578&view=rev
Author:   hofman
Date:     2009-08-23 17:07:36 +0000 (Sun, 23 Aug 2009)

Log Message:
-----------
init and dealloc temporary data

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

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2009-08-23 12:40:15 UTC (rev 5577)
+++ trunk/SKPDFDocument.m       2009-08-23 17:07:36 UTC (rev 5578)
@@ -2282,6 +2282,25 @@
 
 @implementation SKTemporaryData
 
+- (id)init {
+    if (self = [super init]) {
+        pdfDocument = nil;
+        noteDicts = nil;
+        presentationOptions = nil;
+        openMetaTags = nil;
+        openMetaRating = 0.0;
+    }
+    return self;
+}
+
+- (void)dealloc {
+    [pdfDocument release];
+    [noteDicts release];
+    [presentationOptions release];
+    [openMetaTags release];
+    [super dealloc];
+}
+
 - (PDFDocument *)pdfDocument {
     return pdfDocument;
 }
@@ -2294,7 +2313,7 @@
 }
 
 - (NSArray *)noteDicts {
-    return [[noteDicts retain] autorelease];
+    return noteDicts;
 }
 
 - (void)setNoteDicts:(NSArray *)newNoteDicts {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to