davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/edgar.git/commit/?id=1ff9d69434bef98efb5970f0042a6945fa6c7e62

commit 1ff9d69434bef98efb5970f0042a6945fa6c7e62
Author: davemds <[email protected]>
Date:   Sun Aug 31 11:08:14 2014 +0200

    Safety checks
---
 src/e_mod_edgar.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/e_mod_edgar.c b/src/e_mod_edgar.c
index 4ab6ae4..666bb64 100644
--- a/src/e_mod_edgar.c
+++ b/src/e_mod_edgar.c
@@ -611,6 +611,9 @@ _edgar_gc_shutdown(E_Gadcon_Client *gcc)
    Edgar_Py_Gadget *gadget = gcc->data;
    PyObject *pyobj, *ret;
 
+   if (!gcc || !gcc->o_base)
+      return;
+
    DBG("EDGAR: Gadcon Shutdown. NAME: %s, ID: %d", gcc->name, gcc->id);
 
    pyobj = object_from_instance(gcc->o_base);

-- 


Reply via email to