ector: on shutdown our ability to find cairo symbol may no be there anymore.

This commit is contained in:
Cedric BAIL 2015-04-03 16:31:32 +02:00
parent 9967da56ca
commit 2821fd58db
1 changed files with 4 additions and 3 deletions

View File

@ -201,15 +201,16 @@ _ector_renderer_cairo_shape_eo_base_destructor(Eo *obj, Ector_Renderer_Cairo_Sha
{
Eo *parent;
USE(obj, cairo_path_destroy, );
if (pd->path) cairo_path_destroy(pd->path);
eo_do(obj, parent = eo_parent_get());
eo_data_xunref(parent, pd->parent, obj);
eo_data_xunref(obj, pd->shape, obj);
eo_data_xunref(obj, pd->base, obj);
eo_do_super(obj, ECTOR_RENDERER_CAIRO_SHAPE_CLASS, eo_destructor());
USE(obj, cairo_path_destroy, );
if (pd->path) cairo_path_destroy(pd->path);
}