gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r12127: Handle cleanup of gnash w/ou


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12127: Handle cleanup of gnash w/out registering a timer. Fixes firefox crashes here.
Date: Sat, 03 Apr 2010 17:25:49 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12127
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Sat 2010-04-03 17:25:49 +0200
message:
  Handle cleanup of gnash w/out registering a timer. Fixes firefox crashes here.
modified:
  plugin/npapi/plugin.cpp
=== modified file 'plugin/npapi/plugin.cpp'
--- a/plugin/npapi/plugin.cpp   2010-03-26 05:49:11 +0000
+++ b/plugin/npapi/plugin.cpp   2010-04-03 15:25:49 +0000
@@ -395,8 +395,9 @@
         int rv = waitpid(_childpid, &status, WNOHANG);
 
         if (rv <= 0) {
-            int* pid = new int(_childpid);
-            g_timeout_add_seconds (1, cleanup_childpid, pid);
+             int* pid = new int(_childpid);
+            usleep(1000);
+            cleanup_childpid(pid);
         } else {
 
 #if GNASH_PLUGIN_DEBUG > 1


reply via email to

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