diff options
author | James Henstridge <james@daa.com.au> | 2002-08-26 12:37:08 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2002-08-26 12:37:08 +0000 |
commit | 74be01c7307b5f97e35ebd345479f38a6f2709c7 (patch) | |
tree | 5c6c79911298077dce1cbe3aa2779145f2bc4c54 /gobject | |
parent | b9fda4275e58acb8dd161f5f9303951df9ecef98 (diff) | |
download | pygtk-74be01c7307b5f97e35ebd345479f38a6f2709c7.tar.gz |
fix up misspelling.
2002-08-26 James Henstridge <james@daa.com.au>
* codegen/docgen.py (DocWriter.write_full_hierarchy): fix up
misspelling.
* pygtype.c (pyg_value_from_pyobject): fix typo from when I was
applying Thomas's patch.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/pygtype.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobject/pygtype.c b/gobject/pygtype.c index febb304f..bb99ed5e 100644 --- a/gobject/pygtype.c +++ b/gobject/pygtype.c @@ -425,13 +425,13 @@ pyg_value_from_pyobject(GValue *value, PyObject *obj) case G_TYPE_STRING: if (obj == Py_None) g_value_set_string(value, NULL); - else if ((tmp = PyObject_Str(obj))) + else if ((tmp = PyObject_Str(obj))) { g_value_set_string(value, PyString_AsString(tmp)); - else { + Py_DECREF(tmp); + } else { PyErr_Clear(); return -1; } - Py_DECREF(tmp); break; case G_TYPE_POINTER: if (PyCObject_Check(obj)) |