From 31686c374ed78d8f15190c814276ed555fb0949a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 7 Sep 2015 22:16:50 -0700 Subject: [PATCH] Libretro: Fix a memory leak with the render buffer --- CHANGES | 1 + src/platform/libretro/libretro.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 00bc6e51f..da17455b2 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,7 @@ Bugfixes: - GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded - GBA: Deinit savegame when unloading a ROM - GBA: Fix BIOS check on big endian + - Libretro: Fix a memory leak with the render buffer Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index 71814f49a..172a4541b 100644 --- a/src/platform/libretro/libretro.c +++ b/src/platform/libretro/libretro.c @@ -193,6 +193,7 @@ void retro_init(void) { void retro_deinit(void) { GBAContextDeinit(&context); + free(renderer.outputBuffer); } void retro_run(void) {