mirror of https://github.com/mgba-emu/mgba.git
Clean up movie state when exiting
This commit is contained in:
parent
dbc6567317
commit
0023613625
|
@ -20,6 +20,13 @@ void GBARRContextDestroy(struct GBA* gba) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (GBARRIsPlaying(gba->rr)) {
|
||||
GBARRStopPlaying(gba->rr);
|
||||
}
|
||||
if (GBARRIsRecording(gba->rr)) {
|
||||
GBARRStopRecording(gba->rr);
|
||||
}
|
||||
|
||||
free(gba->rr);
|
||||
gba->rr = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue