Use array form of delete (error identified with libmapixx-attach test, using valgrind).
authorBrad Hards <bradh@openchange.org>
Sun, 2 Aug 2009 02:44:04 +0000 (02:44 +0000)
committerBrad Hards <bradh@openchange.org>
Sun, 2 Aug 2009 02:44:04 +0000 (02:44 +0000)
libmapi++/attachment.h

index ee283152cfff25c52bc1e099e6448291ddc7840e..3a972eec0e2e163bf2a2c0997006dfae3f4a986d 100644 (file)
@@ -142,7 +142,7 @@ class attachment : public object {
                 */
                virtual ~attachment() throw()
                {
-                       if (m_bin_data) delete m_bin_data;
+                       if (m_bin_data) delete[] m_bin_data;
                }
 
        private: