From 97fdd618bc7de4b4932a38e2bc3c5ac8de8c68ce Mon Sep 17 00:00:00 2001 From: driAn Date: Fri, 23 May 2008 20:39:09 +0000 Subject: [PATCH] fixed mem leak git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2093 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 258a0fa8..88c7d413 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -986,7 +986,7 @@ void detachsounds(playerent *owner) { location &l = locations[i]; if(l.p != owner) continue; - l.attachtoworldobj(new vec(l.p->o)); + l.attachtoworldobj(&l.p->o); } }