This patch fixes following bugs. (not effect to behavior)
 1. SWF::File leaks memory when destructed.
 2. SWFReader::getData() doesn't return a value.

---
Sorry about my poor English.
INADA Naoki  <[EMAIL PROTECTED]>
                    KLab Inc.
Index: src/SWFFile.h
===================================================================
--- src/SWFFile.h       (revision 242)
+++ src/SWFFile.h       (working copy)
@@ -8,6 +8,7 @@
 class File {
        public:
                File();
+               ~File();
                int load( FILE *fp, Context *ctx = NULL, unsigned int 
filesize=0 );
                int save( FILE *fp, Context *ctx = NULL );
                void dump();
Index: src/SWFFile.cpp
===================================================================
--- src/SWFFile.cpp     (revision 242)
+++ src/SWFFile.cpp     (working copy)
@@ -15,6 +15,10 @@
        header = NULL;
 }
 
+File::~File() {
+       delete header;
+}
+
 void File::dump() {
        Context ctx;
        if( !header ) {
Index: src/SWFReader.cpp
===================================================================
--- src/SWFReader.cpp   (revision 242)
+++ src/SWFReader.cpp   (working copy)
@@ -21,6 +21,7 @@
        } else {
                memcpy( dst, &data[pos], len );
                pos += len;
+               return true;
        }
 }
 
_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to