From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 6 Dec 1999 17:56:59 +0000 (+0000)
Subject: compile fix
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85d11a7072d9ee43744f6f043d98901967dcdf8f?ds=sidebyside

compile fix


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp
index 1b3962365c..6ffbf1c33a 100644
--- a/src/common/mimetype.cpp
+++ b/src/common/mimetype.cpp
@@ -1766,11 +1766,10 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxFileType **filetypes)
 {
     size_t count = m_aTypes.GetCount();
 
-    *filetypes = new wxFileType *[count];
+    *filetypes = new wxFileType[count];
     for ( size_t n = 0; n < count; n++ )
     {
-        (*filetypes)[n] = new wxFileType;
-        (*filetypes)[n]->m_impl->Init(this, n);
+        (*filetypes)[n].m_impl->Init(this, n);
     }
 
     return count;