1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-31 20:52:18 +01:00

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
This commit is contained in:
Scott Ehlert 2006-04-19 22:24:25 +00:00
parent 1e68eb3131
commit 2e46e55a4c

View File

@ -336,6 +336,8 @@ void *CSmmAPI::InterfaceSearch(CreateInterfaceFn fn, const char *iface, int max,
break;
} while ( num = FormatIface(_if, len) );
delete[] _if;
return pf;
}