diff --git a/deps/agg/include/agg_basics.h b/deps/agg/include/agg_basics.h index eb141c47b..cd84c5f6d 100644 --- a/deps/agg/include/agg_basics.h +++ b/deps/agg/include/agg_basics.h @@ -35,8 +35,10 @@ namespace agg //------------------------------------------------------------pod_allocator template struct pod_allocator { - static T* allocate(unsigned num) { return static_cast(::operator new(sizeof(T)*num));} - static void deallocate(T* ptr, unsigned) { ::operator delete(ptr) ;} + //static T* allocate(unsigned num) { return static_cast(::operator new(sizeof(T)*num));} + //static void deallocate(T* ptr, unsigned) { ::operator delete(ptr) ;} + static T* allocate(unsigned num) { return new T [num]; } + static void deallocate(T* ptr, unsigned) { delete [] ptr; } }; // Single object allocator. It's also can be replaced with your custom