Remember to zero current_reg on close. Should fix #2781065 and hopefully
doesn't break anything.
This commit is contained in:
parent
f6cde624f4
commit
f464846c3c
|
@ -20,6 +20,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
#include <string.h>
|
||||||
#include "../dTool.h"
|
#include "../dTool.h"
|
||||||
|
|
||||||
#include "../MMU.h"
|
#include "../MMU.h"
|
||||||
|
@ -398,6 +399,7 @@ static int DTOOL_ID;
|
||||||
|
|
||||||
static void close()
|
static void close()
|
||||||
{
|
{
|
||||||
|
memset(current_reg, 0, sizeof(current_reg));
|
||||||
dTool_CloseCallback(DTOOL_ID);
|
dTool_CloseCallback(DTOOL_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue