diff --git a/windows/alloc.cpp b/windows/alloc.cpp index 15caf3c6..d89b2400 100644 --- a/windows/alloc.cpp +++ b/windows/alloc.cpp @@ -1,10 +1,10 @@ // 4 december 2014 #include "uipriv_windows.hpp" -typedef std::vector *byteArray; +typedef std::vector byteArray; -static std::map heap; -static std::map types; +static std::map heap; +static std::map types; void initAlloc(void) { @@ -31,7 +31,7 @@ void uninitAlloc(void) void *uiAlloc(size_t size, const char *type) { - byteArray out; + byteArray *out; out = new byteArray(size, 0); heap[&out[0]] = out; @@ -41,7 +41,7 @@ void *uiAlloc(size_t size, const char *type) void *uiRealloc(void *p, size_t size, const char *type) { - byteArray arr; + byteArray *arr; if (p == NULL) return uiAlloc(size, type);