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:
parent
1e68eb3131
commit
2e46e55a4c
@ -336,6 +336,8 @@ void *CSmmAPI::InterfaceSearch(CreateInterfaceFn fn, const char *iface, int max,
|
||||
break;
|
||||
} while ( num = FormatIface(_if, len) );
|
||||
|
||||
delete[] _if;
|
||||
|
||||
return pf;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user