diff options
| author | 2015-11-18 12:18:33 +0000 | |
|---|---|---|
| committer | 2015-11-18 12:18:33 +0000 | |
| commit | 6a907c89a3e6a3d454c3bc7673571861f1ca4852 (patch) | |
| tree | 7a7e278e84f71af23c36f6df31e2b2bf7f7a5d88 /gb.hpp | |
| parent | Fix Another Typo causing unresolved external symbol (diff) | |
Fix array::free
Diffstat (limited to '')
| -rw-r--r-- | gb.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,8 +1,9 @@ -// gb.hpp - v0.21c - public domain C++11 helper library - no warranty implied; use at your own risk +// gb.hpp - v0.21d - public domain C++11 helper library - no warranty implied; use at your own risk // (Experimental) A C++11 helper library without STL geared towards game development /* Version History: + 0.21d - Fix array::free 0.21c - Fix Another Typo causing unresolved external symbol 0.21b - Typo fixes 0.21a - Better `static` keywords @@ -1329,6 +1330,9 @@ free(Array<T>* a) { if (a->allocator) dealloc(a->allocator, a->data); + a->count = 0; + a->capacity = 0; + a->data = nullptr; } template <typename T> |
