evas-drm: Set Magic on the Ecore_Evas

@bugfix: Set magic on the ecore_evas

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-02-11 07:10:15 +00:00
parent b42af265be
commit b184d140a2
1 changed files with 5 additions and 0 deletions

View 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;
}