diff options
author | Matthew Hoops | 2013-04-15 18:35:11 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-15 18:35:11 -0400 |
commit | 1d778360fe3709a2836bfc6d76f6fde10e3b2d6c (patch) | |
tree | e7d5fdfc0f0829022dd69db2b882c23c3ebcafd6 /video | |
parent | ef098e2898e0d3eb358189da05e3b973b652dc91 (diff) | |
download | scummvm-rg350-1d778360fe3709a2836bfc6d76f6fde10e3b2d6c.tar.gz scummvm-rg350-1d778360fe3709a2836bfc6d76f6fde10e3b2d6c.tar.bz2 scummvm-rg350-1d778360fe3709a2836bfc6d76f6fde10e3b2d6c.zip |
VIDEO: Fix potential memory leak when adding a stream file track
Diffstat (limited to 'video')
-rw-r--r-- | video/video_decoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index ebe15c5fc1..5df811008c 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -674,6 +674,8 @@ bool VideoDecoder::addStreamFileTrack(const Common::String &baseName) { if (result) addTrack(track); + else + delete track; return result; } |