gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r12202: only free the cookie if it's


From: Rob Savoye
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12202: only free the cookie if it's been set.
Date: Thu, 27 May 2010 17:23:21 -0600
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12202
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Thu 2010-05-27 17:23:21 -0600
message:
  only free the cookie if it's been set.
modified:
  plugin/npapi/plugin.cpp
=== modified file 'plugin/npapi/plugin.cpp'
--- a/plugin/npapi/plugin.cpp   2010-05-27 19:11:10 +0000
+++ b/plugin/npapi/plugin.cpp   2010-05-27 23:23:21 +0000
@@ -955,10 +955,10 @@
                     "Couldn't set environment variable GNASH_COOKIES_IN to %s",
                     ncookie);
             }
+            NPN_MemFree(cookie);
         } else {
             gnash::log_debug("No stored Cookie for %s", url);
         }    
-        NPN_MemFree(cookie);
     }
 
     std::stringstream pars;


reply via email to

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