Revision: 13671
http://sourceforge.net/p/skim-app/code/13671
Author: hofman
Date: 2023-09-28 15:00:18 +0000 (Thu, 28 Sep 2023)
Log Message:
-----------
release tmpData implicitly
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2023-09-28 14:58:03 UTC (rev 13670)
+++ trunk/SKMainDocument.m 2023-09-28 15:00:18 UTC (rev 13671)
@@ -210,11 +210,12 @@
[[self mainWindowController] setRating:[tmpData openMetaRating]];
[[self undoManager] enableUndoRegistration];
+
+ SKDESTROY(tmpData);
}
- (void)windowControllerDidLoadNib:(NSWindowController *)aController{
[self setDataFromTmpData];
- SKDESTROY(tmpData);
fileUpdateChecker = [[SKFileUpdateChecker alloc] initForDocument:self];
// the file update checker starts disabled, setting enabled will start
checking if it should
@@ -1000,10 +1001,10 @@
[self setDataFromTmpData];
[[self undoManager] removeAllActions];
[fileUpdateChecker reset];
+ } else {
+ SKDESTROY(tmpData);
}
- SKDESTROY(tmpData);
-
if (modalwindow) {
[NSApp endModalSession:session];
[modalwindow orderOut:nil];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit