CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/02/08 23:09:19

Modified files:
        .              : ChangeLog 
        libmedia/gst   : SoundHandlerGst.cpp 

Log message:
                * libmedia/gst/SoundHandlerGst.cpp (dtor): don't abort
                  if destructed before the VM is initialized (gnash nonexistent
                  will trigger that behaviour).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5597&r2=1.5598
http://cvs.savannah.gnu.org/viewcvs/gnash/libmedia/gst/SoundHandlerGst.cpp?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5597
retrieving revision 1.5598
diff -u -b -r1.5597 -r1.5598
--- ChangeLog   8 Feb 2008 19:33:19 -0000       1.5597
+++ ChangeLog   8 Feb 2008 23:09:19 -0000       1.5598
@@ -1,3 +1,9 @@
+2008-02-09 Sandro Santilli <[EMAIL PROTECTED]>
+
+       * libmedia/gst/SoundHandlerGst.cpp (dtor): don't abort
+         if destructed before the VM is initialized (gnash nonexistent
+         will trigger that behaviour).
+
 2008-02-08 Sandro Santilli <[EMAIL PROTECTED]>
 
        * server/movie_root.cpp (setRootMovie): cleanup display list

Index: libmedia/gst/SoundHandlerGst.cpp
===================================================================
RCS file: /sources/gnash/gnash/libmedia/gst/SoundHandlerGst.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- libmedia/gst/SoundHandlerGst.cpp    8 Feb 2008 15:27:31 -0000       1.1
+++ libmedia/gst/SoundHandlerGst.cpp    8 Feb 2008 23:09:19 -0000       1.2
@@ -52,7 +52,7 @@
   
   _sounds.clear();
   
-  VM::get().getRoot().clear_interval_timer(_timer_id);
+  if ( VM::initialized() ) VM::get().getRoot().clear_interval_timer(_timer_id);
 }
 
 void


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to