SWF::Rect also have error.
The valgrind (memory leak check tool) finds no more error now! (in my test)
Index: src/SWFItem.cpp
===
--- src/SWFItem.cpp (revision 243)
+++ src/SWFItem.cpp (working copy)
@@ -125,7 +125,7 @@
}
SWF::GlyphList also uses delete where should use delete[].
This patch fix it.
Index: src/SWFGlyphList.cpp
===
--- src/SWFGlyphList.cpp(revision 243)
+++ src/SWFGlyphList.cpp(working copy)
@@ -12,8 +12,8 @@
}
Sorry, previous patch contains error.
This is corrected patch.
Index: src/SWFFile.cpp
===
--- src/SWFFile.cpp (revision 243)
+++ src/SWFFile.cpp (working copy)
@@ -102,7 +102,7 @@
return length+8;
fail:
-
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
Thanks for your patch. I've applied it to the svn.
Ralf
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]