Revision: 27525 http://sourceforge.net/p/bibdesk/svn/27525 Author: hofman Date: 2022-06-02 15:46:25 +0000 (Thu, 02 Jun 2022) Log Message: ----------- avoid invalid object
Modified Paths: -------------- trunk/bibdesk/BDSKACLParser.m Modified: trunk/bibdesk/BDSKACLParser.m =================================================================== --- trunk/bibdesk/BDSKACLParser.m 2022-06-02 15:37:56 UTC (rev 27524) +++ trunk/bibdesk/BDSKACLParser.m 2022-06-02 15:46:25 UTC (rev 27525) @@ -66,8 +66,10 @@ if ([NSString isEmptyString:url] == NO) { if ([[url pathExtension] isCaseInsensitiveEqual:@"pdf"] == NO) { NSString *pdfURL = [([url hasSuffix:@"/"] ? [url substringToIndex:[url length] - 1] : url) stringByAppendingString:@".pdf"]; - if (addLinkedFiles) + if (addLinkedFiles) { [item addFileForURL:[NSURL URLWithString:pdfURL] autoFile:NO runScriptHook:NO]; + [[url retain] autorelease]; + } [item setField:BDSKUrlString toValue:pdfURL]; } if (addLinkedFiles) 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