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:
driAn
2008-05-20 18:59:44 +00:00
parent 0ca9ee01ed
commit f91a99fbe2
-1
View File
@@ -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);
}