evas-drm: Set Magic on the Ecore_Evas
authorChris Michael <cp.michael@samsung.com>
Tue, 11 Feb 2014 07:10:15 +0000 (07:10 +0000)
committerChris Michael <cp.michael@samsung.com>
Fri, 28 Feb 2014 13:08:44 +0000 (13:08 +0000)
@bugfix: Set magic on the ecore_evas

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c

index 8a7160b..68f327e 100644 (file)
@@ -122,12 +122,17 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent, int x, int
         return NULL;
      }
 
+   /* try to allocate space for new ecore_evas */
    if (!(ee = calloc(1, sizeof(Ecore_Evas))))
      {
         ERR("Failed to allocate space for new Ecore_Evas");
         return NULL;
      }
 
+   ECORE_MAGIC_SET(ee, ECORE_MAGIC_EVAS);
+
+   /* try to init drm */
+
    return ee;
 }