[pybank] Propagate error



commit 94509cd03b00f230f8562c18c9d4786991d8f0c3
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Thu May 14 13:54:32 2009 +0200

    Propagate error
---
 bank/bank-info.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/bank/bank-info.c b/bank/bank-info.c
index 3d991d8..1bff68b 100644
--- a/bank/bank-info.c
+++ b/bank/bank-info.c
@@ -1028,6 +1028,9 @@ _wrap_g_field_info_get_value(PyGIBaseInfo *self, PyObject *args)
     }
 
     retval = pyg_argument_to_pyobject (&value, g_field_info_get_type (field_info));
+    if (retval == NULL) {
+        return NULL;
+    }
 
     Py_INCREF(retval);
     return retval;



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