From d07583d675646b46d8c0a9a8551d06ae739676ad Mon Sep 17 00:00:00 2001 From: SarahW Date: Thu, 6 Apr 2017 21:52:51 +0100 Subject: [PATCH] io_removehandler() now clears private pointers. --- src/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io.c b/src/io.c index fe5e818..387c391 100644 --- a/src/io.c +++ b/src/io.c @@ -91,6 +91,7 @@ void io_removehandler(uint16_t base, int size, port_outw[ base + c][0] = NULL; if (port_outl[ base + c][0] == outl) port_outl[ base + c][0] = NULL; + port_priv[base + c][0] = NULL; } if (port_priv[base + c][1] == priv) { @@ -106,6 +107,7 @@ void io_removehandler(uint16_t base, int size, port_outw[ base + c][1] = NULL; if (port_outl[ base + c][1] == outl) port_outl[ base + c][1] = NULL; + port_priv[base + c][1] = NULL; } } }