Revision: 13627
          http://sourceforge.net/p/skim-app/code/13627
Author:   hofman
Date:     2023-09-03 08:31:03 +0000 (Sun, 03 Sep 2023)
Log Message:
-----------
clear placeholder widgets when clearing widgets

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-09-03 08:29:24 UTC (rev 13626)
+++ trunk/SKMainWindowController.m      2023-09-03 08:31:03 UTC (rev 13627)
@@ -976,6 +976,7 @@
         [self stopObservingNotes:widgets];
     SKDESTROY(widgets);
     SKDESTROY(widgetValues);
+    SKDESTROY(placeholderWidgetProperties);
 }
 
 - (void)setWidgetValues:(NSMapTable *)newWidgetValues {
@@ -1167,8 +1168,7 @@
             [self removeAllObjectsFromNotes];
             [self setThumbnails:nil];
             [self clearWidgets];
-            SKDESTROY(placeholderWidgetProperties);
-
+            
             // remmeber snapshots and close them, without animation
             snapshotDicts = [snapshots valueForKey:SKSnapshotCurrentSetupKey];
             [snapshots setValue:nil forKey:@"delegate"];

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

Reply via email to