if (surface_exists(surf)) surface_free(surf); if (surface_exists(surf2)) surface_free(surf2); with (obj_marker) { if (variable_instance_exists(id, "iscircle")) instance_destroy(); }