e_comp_object: check pixmap available when e_comp_object_dirty 07/184907/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 24 Jul 2018 07:11:53 +0000 (16:11 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 24 Jul 2018 07:17:22 +0000 (16:17 +0900)
e_pixmap_size_get returns last attached buffer size (from commit f009a9a4 )
eventhough it is destroyed, so check resource

Change-Id: Ie1a38be03ba6564e59a2dc54494f4de0920f49a1

src/bin/e_comp_object.c

index 8290c96..57a0c95 100644 (file)
@@ -4411,6 +4411,13 @@ e_comp_object_dirty(Evas_Object *obj)
    API_ENTRY;
    if (cw->external_content) return;
    /* only actually dirty if pixmap is available */
+   if (!e_pixmap_resource_get(cw->ec->pixmap))
+     {
+        // e_pixmap_size_get returns last attached buffer size
+        // eventhough it is destroyed
+        ERR("ERROR NO PIXMAP FOR ec:%p", cw->ec);
+        return;
+     }
    dirty = e_pixmap_size_get(cw->ec->pixmap, &w, &h);
    visible = cw->visible;
    if (!dirty) w = h = 1;