]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed memory leak (patch 685580)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2003 23:18:26 +0000 (23:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2003 23:18:26 +0000 (23:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 4b6378e1d61042bd41b61191afb78146b89eb2e6..f1949358911dd883c17edfa2a79daea7278a4590 100644 (file)
@@ -1879,6 +1879,10 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType,
                         entryOld->AddOrReplaceVerb(verb, entry->GetCmd(i));
                     }
                 }
+
+                // as we don't store it anywhere, it won't be deleted later as
+                // usual -- do it immediately instead
+                delete entry;
             }
         }
     }