Clean up movie state when exiting

This commit is contained in:
Jeffrey Pfau 2014-07-29 22:49:24 -07:00
parent dbc6567317
commit 0023613625
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}