[gjs] gi: fix gunichar args
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] gi: fix gunichar args
- Date: Wed, 4 May 2011 15:24:00 +0000 (UTC)
commit 47edbf58816d2b9dc5538ea0e76e5a6168db3610
Author: Dan Winship <danw gnome org>
Date: Wed May 4 11:21:46 2011 -0400
gi: fix gunichar args
gjs_value_to_g_argument() knew how to deal with gunichars, but
gjs_g_arg_release_internal() didn't, which meant you could pass a
gunichar to a method, but then gjs would throw an error while cleaning
up afterward.
gi/arg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index f4cda1a..04be81a 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -2047,6 +2047,7 @@ gjs_g_arg_release_internal(JSContext *context,
case GI_TYPE_TAG_UINT64:
case GI_TYPE_TAG_FLOAT:
case GI_TYPE_TAG_DOUBLE:
+ case GI_TYPE_TAG_UNICHAR:
break;
case GI_TYPE_TAG_FILENAME:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]