Update of /cvsroot/audacity/audacity-src/src/export
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv9158
Modified Files:
ExportMP3.cpp
Log Message:
Don't free it if it wasn't allocated.
Index: ExportMP3.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/export/ExportMP3.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- ExportMP3.cpp 31 May 2007 02:55:06 -0000 1.69
+++ ExportMP3.cpp 31 May 2007 03:01:05 -0000 1.70
@@ -1829,11 +1829,12 @@
outFile.Write(id3buffer, id3len);
}
- free(id3buffer);
+ if (id3buffer)
+ free(id3buffer);
/* Close file */
outFile.Close();
-
+
delete[]buffer;
return !cancelling;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs