Revision: 27560
          http://sourceforge.net/p/bibdesk/svn/27560
Author:   hofman
Date:     2022-06-05 14:40:43 +0000 (Sun, 05 Jun 2022)
Log Message:
-----------
release old value after condition

Modified Paths:
--------------
    trunk/bibdesk/BibItem.m

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2022-06-05 06:30:17 UTC (rev 27559)
+++ trunk/bibdesk/BibItem.m     2022-06-05 14:40:43 UTC (rev 27560)
@@ -1197,12 +1197,11 @@
         NSMutableDictionary *notifInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:key, BDSKBibItemKeyKey, nil];
         [notifInfo setValue:value forKey:BDSKBibItemNewValueKey];
         [notifInfo setValue:oldValue forKey:BDSKBibItemOldValueKey];
-        [oldValue release];
-        
         [[NSNotificationCenter defaultCenter] 
postNotificationName:BDSKBibItemChangedNotification
                                                             object:self
                                                           userInfo:notifInfo];
     }
+    [oldValue release];
 }
 
 - (void)replaceValueOfFieldByCopy:(NSString *)key{

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to