From 2e46e55a4c4287869674ca4db27975e57db7f315 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Wed, 19 Apr 2006 22:24:25 +0000 Subject: [PATCH] Hi Mr. Memory Leak, may I squash you? Fixed a memory leak in CSmmAPI::InterfaceSearch --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40189 --- sourcemm/CSmmAPI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sourcemm/CSmmAPI.cpp b/sourcemm/CSmmAPI.cpp index aa2f6e1..7c5b9b3 100644 --- a/sourcemm/CSmmAPI.cpp +++ b/sourcemm/CSmmAPI.cpp @@ -336,6 +336,8 @@ void *CSmmAPI::InterfaceSearch(CreateInterfaceFn fn, const char *iface, int max, break; } while ( num = FormatIface(_if, len) ); + delete[] _if; + return pf; }