From: Hermet Park Date: Mon, 19 Apr 2021 07:52:03 +0000 (+0900) Subject: evas vg: fix a crash issue. X-Git-Tag: submit/tizen/20210420.103606^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df53c774e92d085b8af92163ac9f635b1e725a28;p=platform%2Fupstream%2Fefl.git evas vg: fix a crash issue. composition target of the scene will be deleted by its owner paint, We should not delete it once again. Change-Id: I788bf18e06bc984adc882925037cc598ab31d012 --- diff --git a/src/lib/evas/canvas/efl_canvas_vg_container.c b/src/lib/evas/canvas/efl_canvas_vg_container.c index 5f4f36c..ca3d785 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_container.c +++ b/src/lib/evas/canvas/efl_canvas_vg_container.c @@ -323,7 +323,8 @@ _efl_canvas_vg_container_efl_object_destructor(Eo *obj, efl_unref(pd->comp.buffer); } #else - tvg_paint_del(pd->scene); + if (!pd->comp.src && pd->scene) + tvg_paint_del(pd->scene); #endif efl_unref(pd->comp_target);