mirror of https://github.com/mgba-emu/mgba.git
Util: Reset vector size on deinit
This commit is contained in:
parent
d339dc7570
commit
d02e8a2a87
1
CHANGES
1
CHANGES
|
@ -63,6 +63,7 @@ Misc:
|
|||
- Qt: Add transformation matrix info to sprite view
|
||||
- Qt: Add per-page scrolling to memory view (fixes mgba.io/i/1795)
|
||||
- Qt: Add setting to display ROM filename in title (closes mgba.io/i/1784)
|
||||
- Util: Reset vector size on deinit
|
||||
|
||||
0.8.2: (2020-06-14)
|
||||
Emulation fixes:
|
||||
|
|
|
@ -47,6 +47,7 @@ CXX_GUARD_START
|
|||
free(vector->vector); \
|
||||
vector->vector = 0; \
|
||||
vector->capacity = 0; \
|
||||
vector->size = 0; \
|
||||
} \
|
||||
TYPE* NAME ## GetPointer(struct NAME* vector, size_t location) { \
|
||||
return &vector->vector[location]; \
|
||||
|
|
Loading…
Reference in New Issue