gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-28-g7459cfe
Date: Wed, 09 Feb 2011 20:11:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  7459cfe483a2a32a53720182dd3823095e0c5f04 (commit)
      from  795e0c6f00b11bd4526e95bf021d1eb764813f37 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=7459cfe483a2a32a53720182dd3823095e0c5f04


commit 7459cfe483a2a32a53720182dd3823095e0c5f04
Author: Sandro Santilli <address@hidden>
Date:   Wed Feb 9 21:11:42 2011 +0100

    Plug more leaks (in the test, not the core)

diff --git a/plugin/npapi/test.cpp b/plugin/npapi/test.cpp
index 026595c..fbca5f1 100644
--- a/plugin/npapi/test.cpp
+++ b/plugin/npapi/test.cpp
@@ -22,6 +22,7 @@
 #include <vector>
 #include <map>
 #include <cassert>
+#include <memory>
 
 #include "npapi.h"
 #include "npruntime.h"
@@ -117,7 +118,6 @@ main(int , char **)
     }
 #endif
 
-    //NPObject *obj =  (NPObject *)NPN_MemAlloc(sizeof(NPObject));
     std::string prop1 = plugin::ExternalInterface::makeString("foobar");
     std::string prop2 = plugin::ExternalInterface::makeNumber(12.34);
     std::string prop3 = plugin::ExternalInterface::makeNumber(56);
@@ -270,7 +270,7 @@ main(int , char **)
 
     // Parse an invoke message
     xml = "<invoke name=\"barbyfoo\" 
returntype=\"xml\"><arguments><string>barfoo</string><number>135.78</number></arguments></invoke>";
-    plugin::ExternalInterface::invoke_t *invoke = 
plugin::ExternalInterface::parseInvoke(xml);
+    std::auto_ptr<plugin::ExternalInterface::invoke_t> invoke ( 
plugin::ExternalInterface::parseInvoke(xml) );
     str = NPStringToString(NPVARIANT_TO_STRING(invoke->args[0].get()));
     if ((invoke->name == "barbyfoo") && (invoke->type == "xml")
         && (NPVARIANT_IS_STRING(invoke->args[0].get()))
@@ -282,6 +282,8 @@ main(int , char **)
     } else {
         runtest.fail("plugin::ExternalInterface::parseInvoke()");
     }
+
+    NPN_MemFree(value);
 }
 
 // We have to implement these two memory allocation functions as

-----------------------------------------------------------------------

Summary of changes:
 plugin/npapi/test.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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