diff options
| author | Johan Dahlin <johan@src.gnome.org> | 2004-08-03 16:31:32 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2004-08-03 16:31:32 +0000 |
| commit | 97cc9ad8f4ac2c74a7b32cdca403a44a12f1e3c8 (patch) | |
| tree | 2e2059a2945801667b059985a867becd760bb027 /gobject/pygobject.c | |
| parent | 826275d0003d570ad174e74ab17783c4a9263cba (diff) | |
| download | pygobject-97cc9ad8f4ac2c74a7b32cdca403a44a12f1e3c8.tar.gz pygobject-97cc9ad8f4ac2c74a7b32cdca403a44a12f1e3c8.tar.xz pygobject-97cc9ad8f4ac2c74a7b32cdca403a44a12f1e3c8.zip | |
More minor threading fixes
Diffstat (limited to 'gobject/pygobject.c')
| -rw-r--r-- | gobject/pygobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gobject/pygobject.c b/gobject/pygobject.c index ac51daf..c5215ae 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -1039,10 +1039,10 @@ pygobject_emit(PyGObject *self, PyObject *args) item->ob_type->tp_name, g_type_name(G_VALUE_TYPE(¶ms[i+1])), i); PyErr_SetString(PyExc_TypeError, buf); - Py_UNBLOCK_THREADS; + for (i = 0; i < query.n_params + 1; i++) g_value_unset(¶ms[i]); - Py_BLOCK_THREADS; + g_free(params); return NULL; } @@ -1051,7 +1051,7 @@ pygobject_emit(PyGObject *self, PyObject *args) g_value_init(&ret, query.return_type & ~G_SIGNAL_TYPE_STATIC_SCOPE); g_signal_emitv(params, signal_id, detail, &ret); - Py_UNBLOCK_THREADS; + for (i = 0; i < query.n_params + 1; i++) g_value_unset(¶ms[i]); @@ -1063,7 +1063,6 @@ pygobject_emit(PyGObject *self, PyObject *args) Py_INCREF(Py_None); py_ret = Py_None; } - Py_BLOCK_THREADS; return py_ret; } |
