mirror of https://github.com/mgba-emu/mgba.git
Core: Fix crash modifying hash table entry (fixes #1673)
This commit is contained in:
parent
7611913d65
commit
d14597f1ee
1
CHANGES
1
CHANGES
|
@ -13,6 +13,7 @@ Emulation fixes:
|
|||
Other fixes:
|
||||
- Core: Ensure ELF regions can be written before trying
|
||||
- Core: Fix ELF loading regression (fixes mgba.io/i/1669)
|
||||
- Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673)
|
||||
- Debugger: Don't skip undefined instructions when debugger attached
|
||||
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
|
||||
Misc:
|
||||
|
|
|
@ -187,7 +187,9 @@ void HashTableInsert(struct Table* table, const char* key, void* value) {
|
|||
struct TableList* list;
|
||||
TABLE_LOOKUP_START(HASH_TABLE_COMPARATOR, list, hash) {
|
||||
if (value != lookupResult->value) {
|
||||
if (table->deinitializer) {
|
||||
table->deinitializer(lookupResult->value);
|
||||
}
|
||||
lookupResult->value = value;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue