Index: src/smart-pointers.h |
diff --git a/src/smart-pointers.h b/src/smart-pointers.h |
index 02025bb7960b436bd41c8e85622dfebd251e30ee..7c35b2aff27196a65d4e5e3e30326d33c292ad1f 100644 |
--- a/src/smart-pointers.h |
+++ b/src/smart-pointers.h |
@@ -129,11 +129,12 @@ class SmartArrayPointer: public SmartPointerBase<ArrayDeallocator<T>, T> { |
template<typename T> |
struct ObjectDeallocator { |
- static void Delete(T* array) { |
- Malloced::Delete(array); |
+ static void Delete(T* object) { |
+ delete object; |
} |
}; |
+ |
template<typename T> |
class SmartPointer: public SmartPointerBase<ObjectDeallocator<T>, T> { |
public: |