On Fri, Sep 14, 2007 at 03:10:02AM +0000, Markus Gothe wrote:
> CVSROOT: /sources/gnash
> Module name: gnash
> Changes by: Markus Gothe <nihilus> 07/09/14 03:10:02
>
> Modified files:
> . : ChangeLog
> server/vm : ASHandlers.cpp
>
> Log message:
> Fixes for compilation with --enable-strict. i.e. dynamically
> alloc/delloc char array.
> + char *str = new char[MB_CUR_MAX + 1];
> memset(str, '\0', MB_CUR_MAX + 1);
> if (wctomb(str, i) == -1)
> {
> @@ -1643,6 +1643,7 @@
> {
> env.top(0).set_string(str);
> }
> + delete[] str;
Consider using boost::scoped_array in these cases, to get exception safety.
--strk;
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit