Remember to zero current_reg on close. Should fix #2781065 and hopefully

doesn't break anything.
This commit is contained in:
riccardom 2009-04-25 16:17:12 +00:00
parent f6cde624f4
commit f464846c3c
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
*/
#include <gtk/gtk.h>
#include <string.h>
#include "../dTool.h"
#include "../MMU.h"
@ -398,6 +399,7 @@ static int DTOOL_ID;
static void close()
{
memset(current_reg, 0, sizeof(current_reg));
dTool_CloseCallback(DTOOL_ID);
}