gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9708: fix segfault on non-existing


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9708: fix segfault on non-existing movie (bug #24232)
Date: Tue, 09 Sep 2008 22:14:30 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9708
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Tue 2008-09-09 22:14:30 +0200
message:
  fix segfault on non-existing movie (bug #24232)
modified:
  gui/gui.cpp
    ------------------------------------------------------------
    revno: 9707.1.1
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Tue 2008-09-09 22:12:33 +0200
    message:
      don't access _movieDef if not set
    modified:
      gui/gui.cpp
=== modified file 'gui/gui.cpp'
--- a/gui/gui.cpp       2008-09-04 03:04:47 +0000
+++ b/gui/gui.cpp       2008-09-09 20:12:33 +0000
@@ -157,7 +157,7 @@
 
 Gui::~Gui()
 {
-    log_debug("~Gui - _movieDef refcount: %d", _movieDef->get_ref_count());
+    if ( _movieDef.get() ) log_debug("~Gui - _movieDef refcount: %d", 
_movieDef->get_ref_count());
 
     delete _renderer;
 #ifdef GNASH_FPS_DEBUG


reply via email to

[Prev in Thread] Current Thread [Next in Thread]