summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@redhat.com>2006-01-15 19:52:57 +0000
committerChristopher Aillon <caillon@src.gnome.org>2006-01-15 19:52:57 +0000
commit55ce546eb1a8bacd32e8822b1a7e29f4eebba01a (patch)
treed48852b7f02f4c2b56be73eab3102c897a9d61e2
parentcb01e059cd106143137e9531978b5e157234a557 (diff)
downloadpygobject-55ce546eb1a8bacd32e8822b1a7e29f4eebba01a.tar.gz
Don't call g_value_init since the other *_to_gvalue methods expect an
2006-01-15 Christopher Aillon <caillon@redhat.com> * gobject/gobjectmodule.c (pyg_strv_to_gvalue): Don't call g_value_init since the other *_to_gvalue methods expect an already inited GValue
-rw-r--r--ChangeLog6
-rw-r--r--gobject/gobjectmodule.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 29a28865..f722217e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-15 Christopher Aillon <caillon@redhat.com>
+
+ * gobject/gobjectmodule.c (pyg_strv_to_gvalue):
+ Don't call g_value_init since the other *_to_gvalue
+ methods expect an already inited GValue
+
2006-01-14 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* gobject/gobjectmodule.c (iowatch_marshal): Warn if io callback
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 37d2e4ca..572d5315 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -2691,7 +2691,6 @@ _pyg_strv_to_gvalue(GValue *value, PyObject *obj)
for (i = 0; i < argc; ++i)
argv[i] = g_strdup(PyString_AsString(PySequence_Fast_GET_ITEM(obj, i)));
argv[i] = NULL;
- g_value_init(value, G_TYPE_STRV);
g_value_take_boxed(value, argv);
return 0;
}