dont crash when exiting program

This commit is contained in:
zeromus 2009-07-17 20:23:17 +00:00
parent dd505213be
commit ca6c0db294
1 changed files with 1 additions and 0 deletions

View File

@ -632,6 +632,7 @@ void GPU_Reset(GPU *g, u8 l)
void GPU_DeInit(GPU * gpu) void GPU_DeInit(GPU * gpu)
{ {
if(gpu==&GPU_main || gpu==&GPU_sub) return;
free(gpu); free(gpu);
} }