Fix the memory leak
authorEonseokLee <eonseok.lee@samsung.com>
Mon, 22 Apr 2013 13:39:44 +0000 (22:39 +0900)
committerEonseokLee <eonseok.lee@samsung.com>
Mon, 22 Apr 2013 13:39:44 +0000 (22:39 +0900)
Change-Id: I80c10f9bf4b3ed176feb2928bcdd785e8dc93ecb
Signed-off-by: EonseokLee <eonseok.lee@samsung.com>
src/FMedia_MediaStreamInfoImpl.cpp

index 82a77c3..0888a3d 100644 (file)
@@ -47,11 +47,15 @@ _MediaStreamInfoImpl::~_MediaStreamInfoImpl()
        if (__pAudioStreamList != null)
        {
                __pAudioStreamList->RemoveAll(true);
+               delete __pAudioStreamList;
+               __pAudioStreamList = null;
        }
 
        if (__pVideoStreamList != null)
        {
                __pVideoStreamList->RemoveAll(true);
+               delete __pVideoStreamList;
+               __pVideoStreamList = null;
        }
        if (__pAlbumArt)
        {