Skip to content

Commit 65641c7

Browse files
committed
Debugger: Properly clear debugger module parent when detaching (fixes mgba-emu#3650)
1 parent aea9d20 commit 65641c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debugger/debugger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void mDebuggerDetachModule(struct mDebugger* debugger, struct mDebuggerModule* m
118118
module->deinit(module);
119119
}
120120
}
121+
module->p = NULL;
121122
mDebuggerModuleListShift(&debugger->modules, i, 1);
122123
break;
123124
}

0 commit comments

Comments
 (0)