Beispiel #1
0
void EPX_ANIM_TYPE_RELEASE(void* arg)
{
    epx_animation_t* anim = (epx_animation_t*) arg;
    EPX_DBGFMT_MEM("EPX_ANIM_TYPE_RELEASE: %p", arg);
    epx_anim_cleanup(anim);
    if (anim->on_heap)
	free(anim);
}
Beispiel #2
0
void EPX_GC_TYPE_RELEASE(void* arg)
{
    epx_gc_t* gc = (epx_gc_t*) arg;

    EPX_DBGFMT_MEM("EGC_TYPE_RELEASE: %p", arg);
    epx_object_unref(gc->fill_texture);
    epx_object_unref(gc->line_texture);
    epx_object_unref(gc->border_texture);
    epx_object_unref(gc->font);
    if (gc->on_heap) free(gc);
}