Owner must free it's resource.
Change-Id: Icae2390494596a80482eb82463a8e91742974839
_evas_cache_vg_data_free_cb(void *data)
{
Vg_File_Data *vfd = data;
- efl_unref(vfd->root);
vfd->loader->file_close(vfd);
}
Lottie_Animation *lot_anim = (Lottie_Animation *) vfd->loader_data;
lottie_animation_destroy(lot_anim);
if (vfd->anim_data) free(vfd->anim_data);
+ if (vfd->root) efl_unref(vfd->root);
free(vfd);
return EINA_TRUE;
}
static Eina_Bool
-evas_vg_load_file_close_svg(Vg_File_Data *vfd EINA_UNUSED)
+evas_vg_load_file_close_svg(Vg_File_Data *vfd)
{
+ if (vfd->root) efl_unref(vfd->root);
return EINA_TRUE;
}