if (path_exists(mypath)) path_delete(mypath); if (surface_exists(surf)) surface_free(surf);