diff options
author | ulion <ulion2002@gmail.com> | 2013-02-25 16:25:10 +0800 |
---|---|---|
committer | ulion <ulion2002@gmail.com> | 2013-02-25 16:29:42 +0800 |
commit | 7f45f63bcf6977e0ee7c6c9dd7507ea7a3e94d6f (patch) | |
tree | 5b69d5a57a47c856e5ce91262904950416c5a13f | |
parent | 744415cf2be0c44767d46c7be72d8752c3b67875 (diff) |
Fix crash in CShoutcastFile::Close(), clear buffer pointer after delete.
-rw-r--r-- | xbmc/filesystem/ShoutcastFile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/filesystem/ShoutcastFile.cpp b/xbmc/filesystem/ShoutcastFile.cpp index fcf633e2df..059fdb1f15 100644 --- a/xbmc/filesystem/ShoutcastFile.cpp +++ b/xbmc/filesystem/ShoutcastFile.cpp @@ -134,6 +134,7 @@ void CShoutcastFile::Close() { StopThread(); delete[] m_buffer; + m_buffer = NULL; m_file.Close(); } |