Gitweb links:

...log 
http://git.netsurf-browser.org/libwapcaplet.git/shortlog/cab5ff449ff11f7ca530c84eedf7238a1670d72e
...commit 
http://git.netsurf-browser.org/libwapcaplet.git/commit/cab5ff449ff11f7ca530c84eedf7238a1670d72e
...tree 
http://git.netsurf-browser.org/libwapcaplet.git/tree/cab5ff449ff11f7ca530c84eedf7238a1670d72e

The branch, master has been updated
       via  cab5ff449ff11f7ca530c84eedf7238a1670d72e (commit)
      from  6ff678247eef5f5e8b2bbc20f39c73727afb3548 (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 -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libwapcaplet.git/commit/?id=cab5ff449ff11f7ca530c84eedf7238a1670d72e
commit cab5ff449ff11f7ca530c84eedf7238a1670d72e
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Ensure that when we test unreffing a string to deletion, we don't then 
unref it again

diff --git a/test/basictests.c b/test/basictests.c
index c23b547..7711da7 100644
--- a/test/basictests.c
+++ b/test/basictests.c
@@ -174,7 +174,8 @@ with_filled_context_setup(void)
 static void
 with_filled_context_teardown(void)
 {
-        lwc_string_unref(intern_one);
+        if (intern_one != NULL)
+                lwc_string_unref(intern_one);
         lwc_string_unref(intern_two);
         lwc_string_unref(intern_three);
         lwc_string_unref(intern_YAY);
@@ -234,6 +235,7 @@ END_TEST
 START_TEST (test_lwc_string_unref_ok)
 {
         lwc_string_unref(intern_one);
+        intern_one = NULL;
 }
 END_TEST
 


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

Summary of changes:
 test/basictests.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/basictests.c b/test/basictests.c
index c23b547..7711da7 100644
--- a/test/basictests.c
+++ b/test/basictests.c
@@ -174,7 +174,8 @@ with_filled_context_setup(void)
 static void
 with_filled_context_teardown(void)
 {
-        lwc_string_unref(intern_one);
+        if (intern_one != NULL)
+                lwc_string_unref(intern_one);
         lwc_string_unref(intern_two);
         lwc_string_unref(intern_three);
         lwc_string_unref(intern_YAY);
@@ -234,6 +235,7 @@ END_TEST
 START_TEST (test_lwc_string_unref_ok)
 {
         lwc_string_unref(intern_one);
+        intern_one = NULL;
 }
 END_TEST
 


-- 
String internment library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to