fix crash when adding an image to an engineless canvas

SVN revision: 72071
This commit is contained in:
Mike Blumenkrantz 2012-06-13 08:20:28 +00:00
parent 04f2f44d6a
commit a82974536d
2 changed files with 6 additions and 0 deletions

View File

@ -800,3 +800,8 @@
2012-06-12 ChunEon Park (Hermet)
* Removed empty evas_object_map_source_set/get APIs. Will Not be implemented.
2012-06-13 Mike Blumenkrantz
* Fix crash in evas_object_image_add() when called prior to setting an engine
for the given canvas.

View File

@ -177,6 +177,7 @@ evas_object_image_add(Evas *e)
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return NULL;
MAGIC_CHECK_END();
EINA_SAFETY_ON_NULL_RETURN_VAL(e->engine.func, NULL);
obj = evas_object_new(e);
evas_object_image_init(obj);
evas_object_inject(obj, e);