[gjs/wip/xulrunner-2-rebase4] [REBASE] Add missing return value set in success path
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/xulrunner-2-rebase4] [REBASE] Add missing return value set in success path
- Date: Fri, 29 Oct 2010 21:34:45 +0000 (UTC)
commit 75b990d01e5b745ed074deecba23c04dc3731adc
Author: Colin Walters <walters verbum org>
Date: Fri Oct 29 17:27:07 2010 -0400
[REBASE] Add missing return value set in success path
gi/boxed.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gi/boxed.c b/gi/boxed.c
index 5d67a52..dea77d3 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -515,7 +515,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(boxed)
unthreadsafe_template_for_constructor.gboxed = NULL;
} else {
GType gtype = g_registered_type_info_get_g_type( (GIRegisteredTypeInfo*) priv->info);
-
+ JSBool retval;
+
if (gtype != G_TYPE_NONE) {
priv->gboxed = g_boxed_copy(gtype,
unthreadsafe_template_for_constructor.gboxed);
@@ -534,7 +535,10 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(boxed)
unthreadsafe_template_for_constructor.gboxed = NULL;
- return priv->gboxed != NULL;
+ retval = priv->gboxed != NULL;
+ if (retval)
+ GJS_NATIVE_CONSTRUCTOR_FINISH(boxed);
+ return retval;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]