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-29-gef2448c
Date: Wed, 09 Feb 2011 21:24:34 +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  ef2448cf77a3f5b79a7bbb697b8f72e8b590fae0 (commit)
      from  7459cfe483a2a32a53720182dd3823095e0c5f04 (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=ef2448cf77a3f5b79a7bbb697b8f72e8b590fae0


commit ef2448cf77a3f5b79a7bbb697b8f72e8b590fae0
Author: Sandro Santilli <address@hidden>
Date:   Wed Feb 9 22:24:20 2011 +0100

    Plug remaining leaks (regexp)

diff --git a/plugin/npapi/test.cpp b/plugin/npapi/test.cpp
index fbca5f1..12b09e3 100644
--- a/plugin/npapi/test.cpp
+++ b/plugin/npapi/test.cpp
@@ -143,6 +143,7 @@ main(int , char **)
     str = plugin::ExternalInterface::makeObject(margs);
     std::string xml = "<object><property 
id=\"test1\"><string>foobar</string></property><property 
id=\"test2\"><number>12.34</number></property><property 
id=\"test3\"><number>56</number></property></object>";
     
+    regfree (&regex_pat);
     regcomp (&regex_pat, xml.c_str(), REG_NOSUB|REG_NEWLINE);
 
 //    std::cout << str << std::endl;
@@ -248,6 +249,7 @@ main(int , char **)
     str = plugin::ExternalInterface::makeInvoke("barbyfoo", iargs);
     xml = "<invoke name=\"barbyfoo\" 
returntype=\"xml\"><arguments><string>barfoo</string><number>135.78</number></arguments></invoke>";
 //    std::cout << str << std::endl;
+    regfree (&regex_pat);
     regcomp (&regex_pat, xml.c_str(), REG_NOSUB|REG_NEWLINE);
     if (regexec (&regex_pat, reinterpret_cast<const char*>(str.c_str()), 0, 
(regmatch_t *)0, 0) == 0) {
         runtest.pass("plugin::ExternalInterface::makeInvoke()");
@@ -283,6 +285,7 @@ main(int , char **)
         runtest.fail("plugin::ExternalInterface::parseInvoke()");
     }
 
+    regfree (&regex_pat);
     NPN_MemFree(value);
 }
 

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

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


hooks/post-receive
-- 
Gnash



reply via email to

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