]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_MIMETYPE == 0; wxFileType memory leak fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Apr 2005 11:46:42 +0000 (11:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Apr 2005 11:46:42 +0000 (11:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dbgrptg.cpp

index 8a5b73ce39bee6a90ebc50e796e2e082dc261156..31df1b85b59c6715e4128d7a2ff8f5cef5a5ee8f 100644 (file)
@@ -431,12 +431,15 @@ void wxDebugReportDialog::OnOpen(wxCommandEvent& )
 
     // try to get the command to open this kind of files ourselves
     wxString command;
+#if wxUSE_MIMETYPE
     wxFileType *
         ft = wxTheMimeTypesManager->GetFileTypeFromExtension(fn.GetExt());
     if ( ft )
     {
         command = ft->GetOpenCommand(fn.GetFullPath());
+        delete ft;
     }
+#endif // wxUSE_MIMETYPE
 
     // if we couldn't, ask the user
     if ( command.empty() )