all repos — mgba @ d02e8a2a8780433a54e3b39cc01e5eb4b688fe3a

mGBA Game Boy Advance Emulator

Util: Reset vector size on deinit
Vicki Pfau vi@endrift.com
Wed, 29 Jul 2020 21:36:34 -0700
commit

d02e8a2a8780433a54e3b39cc01e5eb4b688fe3a

parent

d339dc75708a058b61d7d4b7a23d922fd80e14b9

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -63,6 +63,7 @@ - Qt: Add hex index to palette view

- 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:
M include/mgba-util/vector.hinclude/mgba-util/vector.h

@@ -47,6 +47,7 @@ void NAME ## Deinit(struct NAME* vector) { \

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