[seed] Fix GLib warning in seed_value_from_gvalue



commit a538ffbda75d12f8b049f4dab7e6dcf05a36e988
Author: Robert Carr <racarr svn gnome org>
Date:   Sun May 10 03:23:13 2009 -0400

    Fix GLib warning in seed_value_from_gvalue
---
 libseed/seed-types.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 4c5ccdb..d6467d7 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -975,6 +975,8 @@ seed_gvalue_from_seed_value (JSContextRef ctx,
 			     JSValueRef val,
 			     GType type, GValue * ret, JSValueRef * exception)
 {
+  if (G_IS_VALUE (ret))
+    g_value_unset (ret);
   switch (type)
     {
     case G_TYPE_BOOLEAN:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]