]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/dataobj2.h
fix memory leak; allocate the DC before SetFont() is called on the status bar
[wxWidgets.git] / include / wx / os2 / dataobj2.h
index 302dd1dc2a9cf5f1e580ef0369fcda39cd4917ac..a05e2d6478fb02537b6ea2f0a34cd40cc00ed68c 100644 (file)
@@ -37,7 +37,7 @@ public:
     virtual bool SetData(size_t len, const void *buf);
 
 protected:
-    void Init() { m_pngData = (void *)NULL; m_pngSize = 0; }
+    void Init() { m_pngData = NULL; m_pngSize = 0; }
     void Clear() { free(m_pngData); }
     void ClearAll() { Clear(); Init(); }