diff options
author | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-13 11:51:54 +0000 |
---|---|---|
committer | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-13 11:51:54 +0000 |
commit | f7d7c296398ef6cee6025ff4d8484a74bca2d554 (patch) | |
tree | cf82ae5aa5e8ca0c459dab0deea6ed0a4034505d /src/core | |
parent | e02d9eb6661546a13b4caad8f1c03e38354ece3d (diff) | |
download | libdom-f7d7c296398ef6cee6025ff4d8484a74bca2d554.tar.gz libdom-f7d7c296398ef6cee6025ff4d8484a74bca2d554.tar.bz2 |
1. Fix a string intern bug.
2. Reset the fields when finalise a dom_event.
svn path=/trunk/dom/; revision=9247
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/string.c | 2 |
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; } |