Mercurial > audlegacy-plugins
comparison src/adplug/core/xsm.cxx @ 869:48ebfc711a8c trunk
[svn] - guard some potentially improper double delete [] usage
author | nenolod |
---|---|
date | Fri, 16 Mar 2007 21:08:34 -0700 |
parents | cae46214b8bf |
children | 4709ce4e209e |
comparison
equal
deleted
inserted
replaced
868:d889a20dd9b5 | 869:48ebfc711a8c |
---|---|
28 { | 28 { |
29 } | 29 } |
30 | 30 |
31 CxsmPlayer::~CxsmPlayer() | 31 CxsmPlayer::~CxsmPlayer() |
32 { | 32 { |
33 if(music) delete [] music; | 33 if(music) { delete [] music; music = 0; } |
34 } | 34 } |
35 | 35 |
36 bool CxsmPlayer::load(VFSFile *fd, const CFileProvider &fp) | 36 bool CxsmPlayer::load(VFSFile *fd, const CFileProvider &fp) |
37 { | 37 { |
38 binistream *f = fp.open(fd); if(!f) return false; | 38 binistream *f = fp.open(fd); if(!f) return false; |