mirror of https://github.com/mgba-emu/mgba.git
3DS: Fix memory leak
This commit is contained in:
parent
10764f81f2
commit
9a5546867b
|
@ -301,7 +301,7 @@ static void _setup(struct mGUIRunner* runner) {
|
||||||
_map3DSKey(&runner->core->inputMap, KEY_L, GBA_KEY_L);
|
_map3DSKey(&runner->core->inputMap, KEY_L, GBA_KEY_L);
|
||||||
_map3DSKey(&runner->core->inputMap, KEY_R, GBA_KEY_R);
|
_map3DSKey(&runner->core->inputMap, KEY_R, GBA_KEY_R);
|
||||||
|
|
||||||
outputBuffer = linearMemAlign(256 * 224 * sizeof(color_t), 0x80);
|
memset(outputBuffer, 0, 256 * 224 * sizeof(color_t));
|
||||||
runner->core->setVideoBuffer(runner->core, outputBuffer, 256);
|
runner->core->setVideoBuffer(runner->core, outputBuffer, 256);
|
||||||
|
|
||||||
unsigned mode;
|
unsigned mode;
|
||||||
|
@ -882,6 +882,7 @@ int main() {
|
||||||
_cleanup();
|
_cleanup();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
outputBuffer = linearMemAlign(256 * 224 * sizeof(color_t), 0x80);
|
||||||
|
|
||||||
struct mGUIRunner runner = {
|
struct mGUIRunner runner = {
|
||||||
.params = {
|
.params = {
|
||||||
|
|
Loading…
Reference in New Issue