discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=661ffe5233d5712b67b250104caf001824c1ba9d

commit 661ffe5233d5712b67b250104caf001824c1ba9d
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Dec 21 09:54:42 2017 -0600

    Fix potential NULL pointer dereference
    
    CID 1382953
---
 src/bin/e_comp_x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 3546f6646..bce81bef2 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -5729,6 +5729,7 @@ _e_comp_x_setup(Ecore_X_Window root, int w, int h)
         if (i >= e_comp_canvas_layer_map(E_LAYER_CLIENT_ABOVE))
           ecore_x_window_raise(e_comp->layers[i].win);
         ec = _e_comp_x_client_new(e_comp->layers[i].win, 0);
+        if (!ec) continue;
         evas_object_name_set(ec->frame, "layer_obj");
         ec->lock_client_stacking = 1;
         ec->internal = 1;

-- 


Reply via email to