diff --git a/mlx_destroy_display.c b/mlx_destroy_display.c index d2970b8..730dadd 100644 --- a/mlx_destroy_display.c +++ b/mlx_destroy_display.c @@ -15,4 +15,5 @@ int mlx_destroy_display(t_xvar *xvar) { XCloseDisplay(xvar->display); + free(xvar); }