summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_drm/ecore_drm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index 1bbd49caa0..81a6fa9500 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -24,9 +24,11 @@ _ecore_drm_event_activate_send(Eina_Bool active)
24{ 24{
25 Ecore_Drm_Event_Activate *e; 25 Ecore_Drm_Event_Activate *e;
26 26
27 e = calloc(1, sizeof(Ecore_Drm_Event_Activate)); 27 if (!(e = calloc(1, sizeof(Ecore_Drm_Event_Activate)))) return;
28
28 e->active = active; 29 e->active = active;
29 ecore_event_add(ECORE_DRM_EVENT_ACTIVATE, e, _ecore_drm_event_activate_free, NULL); 30 ecore_event_add(ECORE_DRM_EVENT_ACTIVATE, e,
31 _ecore_drm_event_activate_free, NULL);
30} 32}
31 33
32/** 34/**