From dd7cf4af10ec3fe622efa28237ce651cf2191c63 Mon Sep 17 00:00:00 2001 From: Emmet Young Date: Wed, 3 Feb 2016 13:42:06 +1100 Subject: [PATCH] Missed two frees, when swapping out for deletes --- Source/Project64-core/N64System/Mips/GBCart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64-core/N64System/Mips/GBCart.cpp b/Source/Project64-core/N64System/Mips/GBCart.cpp index be23afcab..a4ca79399 100644 --- a/Source/Project64-core/N64System/Mips/GBCart.cpp +++ b/Source/Project64-core/N64System/Mips/GBCart.cpp @@ -812,10 +812,10 @@ void GBCart::save_gb_cart(struct gb_cart* gb_cart) void GBCart::release_gb_cart(struct gb_cart* gb_cart) { if (gb_cart->rom != NULL) - free(gb_cart->rom); + delete gb_cart->rom; if (gb_cart->ram != NULL) - free(gb_cart->ram); + delete gb_cart->ram; memset(gb_cart, 0, sizeof(*gb_cart)); }