Commits

Anonymous committed dd73a11

added autorelease pool to get rid of warnings

Comments (0)

Files changed (2)

 
 #pragma mark callback functions
 void beginRendering(void* data) {
-    NSLog(@"begin rendering");
+
 }
 
 void endRendering(void* data, bool canceled) {
     NSLog(@"end rendering");
     if (!canceled) {
+        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
         [(TronPDFView*)data setNeedsDisplay:YES];
+        [pool drain];
     }
 }
 
 void currPageProc(int current_page, int num_pages, void *data) {
-    
 }
 
 /**

cocoapdf.xcodeproj/quincy.mode1v3

 			<key>Content</key>
 			<dict>
 				<key>PBXProjectModuleGUID</key>
-				<string>24715875120E267F00711708</string>
+				<string>2480624E120E8D9900A8420F</string>
 				<key>PBXProjectModuleLabel</key>
 				<string>TronPDFView.mm</string>
 				<key>PBXSplitModuleInNavigatorKey</key>
 					<key>Split0</key>
 					<dict>
 						<key>PBXProjectModuleGUID</key>
-						<string>24715879120E26B400711708</string>
+						<string>24806252120E8DAF00A8420F</string>
 						<key>PBXProjectModuleLabel</key>
 						<string>TronPDFView.mm</string>
 						<key>_historyCapacity</key>
 						<integer>0</integer>
 						<key>bookmark</key>
-						<string>2471597D120E691A00711708</string>
+						<string>248062AB120E95F800A8420F</string>
 						<key>history</key>
 						<array>
-							<string>24715881120E276800711708</string>
-							<string>247158A9120E419600711708</string>
-							<string>247158F1120E48B300711708</string>
-							<string>24715969120E62E500711708</string>
-							<string>2471597B120E691A00711708</string>
-							<string>2471597C120E691A00711708</string>
+							<string>24806289120E92B700A8420F</string>
+							<string>24806291120E92E700A8420F</string>
 						</array>
 					</dict>
 					<key>SplitCount</key>
 			<key>Geometry</key>
 			<dict>
 				<key>Frame</key>
-				<string>{{0, 20}, {1003, 601}}</string>
+				<string>{{0, 20}, {808, 502}}</string>
 				<key>PBXModuleWindowStatusBarHidden2</key>
 				<false/>
 				<key>RubberWindowFrame</key>
-				<string>158 101 1003 642 0 0 1280 778 </string>
+				<string>264 152 808 543 0 0 1280 778 </string>
 			</dict>
 		</dict>
 	</array>
 			<key>Layout</key>
 			<array>
 				<dict>
-					<key>BecomeActive</key>
-					<true/>
 					<key>ContentConfiguration</key>
 					<dict>
 						<key>PBXBottomSmartGroupGIDs</key>
 							<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
 							<array>
 								<array>
-									<integer>4</integer>
+									<integer>12</integer>
 									<integer>2</integer>
 									<integer>0</integer>
 								</array>
 										<key>_historyCapacity</key>
 										<integer>0</integer>
 										<key>bookmark</key>
-										<string>2471597A120E691A00711708</string>
+										<string>248062AA120E95F800A8420F</string>
 										<key>history</key>
 										<array>
 											<string>241D2A8211FBCBED0067260B</string>
 											<string>246738851206E1F400157160</string>
 											<string>24E4BEA71207A02F00CA10EA</string>
 											<string>24E4BECC1207A25400CA10EA</string>
-											<string>247157F8120E1CCB00711708</string>
-											<string>24715853120E23FA00711708</string>
+											<string>2480627B120E923C00A8420F</string>
+											<string>2480627C120E923C00A8420F</string>
 										</array>
 									</dict>
 									<key>SplitCount</key>
 							<key>GeometryConfiguration</key>
 							<dict>
 								<key>Frame</key>
-								<string>{{0, 0}, {414, 152}}</string>
+								<string>{{0, 0}, {414, 138}}</string>
 								<key>RubberWindowFrame</key>
 								<string>190 177 788 504 0 0 1280 778 </string>
 							</dict>
 							<key>Module</key>
 							<string>PBXNavigatorGroup</string>
 							<key>Proportion</key>
-							<string>152pt</string>
+							<string>138pt</string>
 						</dict>
 						<dict>
+							<key>BecomeActive</key>
+							<true/>
 							<key>ContentConfiguration</key>
 							<dict>
 								<key>PBXProjectModuleGUID</key>
 							<key>GeometryConfiguration</key>
 							<dict>
 								<key>Frame</key>
-								<string>{{0, 157}, {414, 306}}</string>
+								<string>{{0, 143}, {414, 320}}</string>
 								<key>RubberWindowFrame</key>
 								<string>190 177 788 504 0 0 1280 778 </string>
 							</dict>
 							<key>Module</key>
 							<string>XCDetailModule</string>
 							<key>Proportion</key>
-							<string>306pt</string>
+							<string>320pt</string>
 						</dict>
 					</array>
 					<key>Proportion</key>
 			</array>
 			<key>TableOfContents</key>
 			<array>
-				<string>247157FB120E1CCB00711708</string>
+				<string>24806240120E8D7800A8420F</string>
 				<string>1CE0B1FE06471DED0097A5F4</string>
-				<string>247157FC120E1CCB00711708</string>
+				<string>24806241120E8D7800A8420F</string>
 				<string>1CE0B20306471E060097A5F4</string>
 				<string>1CE0B20506471E060097A5F4</string>
 			</array>
 	<key>PerspectivesBarVisible</key>
 	<false/>
 	<key>PinnedNavigatorIdentifier</key>
-	<string>24715875120E267F00711708</string>
+	<string>2480624E120E8D9900A8420F</string>
 	<key>ShelfIsVisible</key>
 	<false/>
 	<key>SourceDescription</key>
 	<integer>5</integer>
 	<key>WindowOrderList</key>
 	<array>
-		<string>2471597E120E691A00711708</string>
-		<string>24715814120E1DBD00711708</string>
-		<string>24715815120E1DBD00711708</string>
+		<string>2480624B120E8D7800A8420F</string>
+		<string>2480624C120E8D7800A8420F</string>
 		<string>1CD10A99069EF8BA00B06720</string>
+		<string>2492503F11CB2A5D0076F523</string>
 		<string>/Users/quincy/Repositories/CocoaPDF/cocoapdf.xcodeproj</string>
-		<string>2492503F11CB2A5D0076F523</string>
 		<string>1C78EAAD065D492600B07095</string>
-		<string>24715875120E267F00711708</string>
+		<string>2480624E120E8D9900A8420F</string>
 	</array>
 	<key>WindowString</key>
 	<string>190 177 788 504 0 0 1280 778 </string>
 			<key>TableOfContents</key>
 			<array>
 				<string>2492503F11CB2A5D0076F523</string>
-				<string>24715803120E1CCB00711708</string>
+				<string>24806242120E8D7800A8420F</string>
 				<string>1CD0528F0623707200166675</string>
 				<string>XCMainBuildResultsModuleGUID</string>
 			</array>
 			<key>TableOfContents</key>
 			<array>
 				<string>1CD10A99069EF8BA00B06720</string>
-				<string>24715804120E1CCB00711708</string>
+				<string>24806243120E8D7800A8420F</string>
 				<string>1C162984064C10D400B95A72</string>
-				<string>24715805120E1CCB00711708</string>
-				<string>24715806120E1CCB00711708</string>
-				<string>24715807120E1CCB00711708</string>
-				<string>24715808120E1CCB00711708</string>
-				<string>24715809120E1CCB00711708</string>
+				<string>24806244120E8D7800A8420F</string>
+				<string>24806245120E8D7800A8420F</string>
+				<string>24806246120E8D7800A8420F</string>
+				<string>24806247120E8D7800A8420F</string>
+				<string>24806248120E8D7800A8420F</string>
 			</array>
 			<key>ToolbarConfiguration</key>
 			<string>xcode.toolbar.config.debugV3</string>
 			<key>TableOfContents</key>
 			<array>
 				<string>1C78EAAD065D492600B07095</string>
-				<string>24715812120E1DBD00711708</string>
+				<string>24806249120E8D7800A8420F</string>
 				<string>1C78EAAC065D492600B07095</string>
 			</array>
 			<key>ToolbarConfiguration</key>