CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/09/26 08:49:47
Modified files: . : ChangeLog backend : sound_handler.h Log message: * backend/sound_handler.h (Buffer::reserve): don't try to copy from the NULL pointer. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4415&r2=1.4416 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler.h?cvsroot=gnash&r1=1.28&r2=1.29 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4415 retrieving revision 1.4416 diff -u -b -r1.4415 -r1.4416 --- ChangeLog 26 Sep 2007 08:35:08 -0000 1.4415 +++ ChangeLog 26 Sep 2007 08:49:46 -0000 1.4416 @@ -1,3 +1,8 @@ +2007-09-26 Sandro Santilli <[EMAIL PROTECTED]> + + * backend/sound_handler.h (Buffer::reserve): don't try to copy + from the NULL pointer. + 2007-09-26 Benjamin Wolsey <[EMAIL PROTECTED]> * gui/gtk.cpp,gtksup.h: add Refresh menu item, add gtk version checks Index: backend/sound_handler.h =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler.h,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- backend/sound_handler.h 26 Sep 2007 07:25:00 -0000 1.28 +++ backend/sound_handler.h 26 Sep 2007 08:49:47 -0000 1.29 @@ -18,7 +18,7 @@ // // -/* $Id: sound_handler.h,v 1.28 2007/09/26 07:25:00 strk Exp $ */ +/* $Id: sound_handler.h,v 1.29 2007/09/26 08:49:47 strk Exp $ */ /// \page sound_handler_intro Sound handler introduction /// @@ -118,9 +118,12 @@ uint8_t* tmp = _data; _data = new uint8_t[_capacity]; + if ( tmp ) + { memcpy(_data, tmp, _size); delete [] tmp; } + } size_t size() const { _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit