|
From: <cre...@us...> - 2006-09-18 19:20:27
|
Revision: 1507
http://svn.sourceforge.net/frontierkernel/?rev=1507&view=rev
Author: creecode
Date: 2006-09-18 12:20:20 -0700 (Mon, 18 Sep 2006)
Log Message:
-----------
on Mac, in filecreateandopen function release CFStringRef before clearing
Modified Paths:
--------------
Frontier/branches/FSRef_Migration/Common/source/file.c
Modified: Frontier/branches/FSRef_Migration/Common/source/file.c
===================================================================
--- Frontier/branches/FSRef_Migration/Common/source/file.c 2006-09-16 17:11:22 UTC (rev 1506)
+++ Frontier/branches/FSRef_Migration/Common/source/file.c 2006-09-18 19:20:20 UTC (rev 1507)
@@ -526,7 +526,7 @@
static boolean filecreateandopen ( ptrfilespec fs, OSType creator, OSType filetype, hdlfilenum *fnum) {
//
- // 2006-06-26 creedon: for Mac, FSRef-ized
+ // 2006-09-15 creedon: for Mac, FSRef-ized
//
#ifdef MACVERSION
@@ -542,7 +542,9 @@
if ( oserror ( err ) )
return (false);
-
+
+ CFRelease ( ( *fs ).path );
+
( *fs ).path = NULL; // clear out path
HFSUniStr255 dataforkname;
@@ -596,7 +598,7 @@
boolean opennewfile ( ptrfilespec fs, OSType creator, OSType filetype, hdlfilenum *fnum ) {
//
- // 2006-06-22 creedon: for Mac, FSRef-ized
+ // 2006-09-13 creedon: for Mac, FSRef-ized
//
boolean flfolder;
@@ -613,6 +615,7 @@
}
return ( filecreateandopen ( fs, creator, filetype, fnum ) );
+
} // opennewfile
@@ -692,7 +695,7 @@
#endif
- } /* openfile */
+ } // openfile
boolean closefile (hdlfilenum fnum) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|