From f91a99fbe23fcabf08be3b8cdabce1cb6b84e0b3 Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 20 May 2008 18:59:44 +0000 Subject: [PATCH] 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 --- source/src/sound.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 22418ffc..a30351b2 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -696,7 +696,6 @@ int addsound(char *name, int vol, int maxuses, bool loop, vector &sounds) if(!b->load(name)) { buffers.remove(name); - DELETEP(b); DELETEA(n); conoutf("\f3failed to load sample %s", name); }