discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=64a62e29ca70cc5375cbd156d9c6f548b6928bdd

commit 64a62e29ca70cc5375cbd156d9c6f548b6928bdd
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Mon Sep 7 10:22:43 2015 -0400

    deskmirror: check if ec is not null before accessing it
    
    Summary: ec can be NULL
    
    Reviewers: devilhorns, zmike
    
    Projects: #enlightenment-git
    
    Differential Revision: https://phab.enlightenment.org/D3023
---
 src/bin/e_deskmirror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_deskmirror.c b/src/bin/e_deskmirror.c
index 331b2c1..4abc0b3 100644
--- a/src/bin/e_deskmirror.c
+++ b/src/bin/e_deskmirror.c
@@ -683,7 +683,7 @@ _e_deskmirror_mirror_add(E_Smart_Data *sd, Evas_Object *obj)
    evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, 
(Evas_Object_Event_Cb)_comp_object_configure, m);
    evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE, 
(Evas_Object_Event_Cb)_comp_object_configure, m);
    evas_object_smart_callback_add(obj, "frame_recalc_done", 
_e_deskmirror_mirror_frame_recalc_cb, m);
-   if ((!ec->redirected) && (!ec->new_client) && 
e_pixmap_usable_get(ec->pixmap))
+   if (ec && (!ec->redirected) && (!ec->new_client) && 
e_pixmap_usable_get(ec->pixmap))
      evas_object_smart_callback_add(obj, "dirty", _comp_object_dirty, m);
    sd->mirrors = eina_inlist_append(sd->mirrors, EINA_INLIST_GET(m));
    eina_hash_add(sd->mirror_hash, &obj, m);

-- 


Reply via email to