Util: Reset vector size on deinit

This commit is contained in:
Vicki Pfau 2020-07-29 21:36:34 -07:00
parent d339dc7570
commit d02e8a2a87
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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]; \