This function is used to destroy an animation.
void dg_animation_free(dg_animation_t *animation);
dg_animation_free(animation);
void dg_animation_free(dg_animation_t *animation) { free(animation); }