summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/basictests.c4
1 files changed, 3 insertions, 1 deletions
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