From 630f4ffafbc4918f8231e68f9ece8ea7cba64af8 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Wed, 12 Aug 2020 20:49:14 +0900 Subject: [PATCH] fixed leak --- BasiliskII/src/SDL/video_sdl2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/SDL/video_sdl2.cpp b/BasiliskII/src/SDL/video_sdl2.cpp index 2dc0a3ca..dcd71dc7 100644 --- a/BasiliskII/src/SDL/video_sdl2.cpp +++ b/BasiliskII/src/SDL/video_sdl2.cpp @@ -236,7 +236,9 @@ static void *vm_acquire_framebuffer(uint32 size) static inline void vm_release_framebuffer(void *fb, uint32 size) { -// vm_release(fb, size); +#ifndef HAVE_MACH_VM + vm_release(fb, size); +#endif } static inline int get_customized_color_depth(int default_depth)