This function is used to free the framebuffer in the memory.
int dg_framebuffer_destroy(dg_framebuffer_t *fb)
dg_framebuffer_destroy(fb);
int dg_framebuffer_destroy(dg_framebuffer_t *fb)
{
free(fb->pixels);
sfTexture_destroy((sfTexture *) sfSprite_getTexture(fb->sp));
sfSprite_destroy(fb->sp);
free(fb);
return 0;
}