summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/string.c b/src/core/string.c
index 7442c66..473363b 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -236,6 +236,8 @@ dom_exception _dom_string_intern(struct dom_string *str,
/* If this string is interned with the same context, do nothing */
if (str->context != NULL && str->context == ctx) {
*lwcstr = str->intern;
+ lwc_context_ref(ctx);
+ lwc_context_string_ref(ctx, *lwcstr);
return DOM_NO_ERR;
}