fixed double-free in sound error handling
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2070 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -696,7 +696,6 @@ int addsound(char *name, int vol, int maxuses, bool loop, vector<slot> &sounds)
|
||||
if(!b->load(name))
|
||||
{
|
||||
buffers.remove(name);
|
||||
DELETEP(b);
|
||||
DELETEA(n);
|
||||
conoutf("\f3failed to load sample %s", name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user