summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_system_cpp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index 211d434da8..fb9edeb582 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -44,7 +44,7 @@ template<class T> class mir_ptr
T* data;
public:
- __inline mir_ptr() : data((T*)mir_calloc(sizeof(T))) {}
+ __inline mir_ptr() : data(NULL) {}
__inline mir_ptr(T* _p) : data(_p) {}
__inline ~mir_ptr() { mir_free(data); }
__inline T* operator = (T* _p) { if (data) mir_free(data); data = _p; return data; }