diff --git a/src/UtilsCtrl/UAllocator.h b/src/UtilsCtrl/UAllocator.h index ee7b98e..9736925 100644 --- a/src/UtilsCtrl/UAllocator.h +++ b/src/UtilsCtrl/UAllocator.h @@ -56,7 +56,7 @@ class UAllocator : public CObject { static T* safeMallocTemplateCObject(Args&&... args) { T* result{}; while (!result) { - ptr = new(std::nothrow) T(std::forward(args)...); + result = new(std::nothrow) T(std::forward(args)...); } return result; }