diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:36:00 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:36:01 +0900 |
commit | 385fb5df2f7c3ec197b954e8a8ddac5297fe4043 (patch) | |
tree | d84ecee10b56acc8ec2633a277fca9ce457013f1 /gi/pygi-argument.c | |
parent | c79482ebfe55da780fd2d733696f5107dc4d5cb8 (diff) | |
download | pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.tar.gz pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.tar.bz2 pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.zip |
Imported Upstream version 2.28.0
Change-Id: If251721667bb545804ab96eb17bffb715cd4e832
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/pygi-argument.c')
-rw-r--r-- | gi/pygi-argument.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c index bbbad00..1b31387 100644 --- a/gi/pygi-argument.c +++ b/gi/pygi-argument.c @@ -1072,8 +1072,6 @@ array_success: } else if (g_type_is_a (type, G_TYPE_CLOSURE)) { GClosure *closure; - g_warn_if_fail (transfer == GI_TRANSFER_NOTHING); - closure = pyg_closure_new (object, NULL, NULL); if (closure == NULL) { PyErr_SetString (PyExc_RuntimeError, "PyObject conversion to GClosure failed"); @@ -1973,10 +1971,6 @@ _pygi_argument_release (GIArgument *arg, || (direction == GI_DIRECTION_OUT && transfer != GI_TRANSFER_NOTHING)) { g_slice_free (GValue, value); } - } else if (g_type_is_a (type, G_TYPE_CLOSURE)) { - if (direction == GI_DIRECTION_IN && transfer == GI_TRANSFER_NOTHING) { - g_closure_unref (arg->v_pointer); - } } else if (g_struct_info_is_foreign ( (GIStructInfo*) info)) { if (direction == GI_DIRECTION_OUT && transfer == GI_TRANSFER_EVERYTHING) { pygi_struct_foreign_release (info, arg->v_pointer); |