Revision: 18630
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18630&view=rev
Author: hofman
Date: 2012-05-17 17:10:17 +0000 (Thu, 17 May 2012)
Log Message:
-----------
ensure C string is freed on all code paths
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm 2012-05-17
17:09:02 UTC (rev 18629)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm 2012-05-17
17:10:17 UTC (rev 18630)
@@ -137,8 +137,6 @@
// Unlink the file immediately so we don't leave turds when the
program crashes.
unlink(tempName);
- free(tempName);
- tempName = NULL;
if (FVCacheLogLevel > 0)
_eventTable = [NSMutableDictionary new];
@@ -153,6 +151,8 @@
[super dealloc];
self = nil;
}
+ free(tempName);
+ tempName = NULL;
}
return self;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit