[UTC][player][Non-ACR][fix bugs]
authorNAMJEONGYOON <just.nam@samsung.com>
Thu, 7 Jul 2016 04:23:25 +0000 (13:23 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Thu, 7 Jul 2016 04:39:47 +0000 (13:39 +0900)
Change-Id: Id3e2e42e1134a571be7e30d0cd761125e5002033

src/utc/player/utc-media-player.c

index 0698c4136c6c082d5aba8d40d858ebcb6b15fae3..4ba5f08a598f04946d407c591ad55265020e5109 100755 (executable)
@@ -195,14 +195,19 @@ void utc_media_player_cleanup(void)
       free(media_path);
     if(subtitle_path)
       free(subtitle_path);
+    audio_path = media_path = subtitle_path = NULL;
     if (g_stream_info_h) {
       sound_manager_destroy_stream_information(g_stream_info_h);
       g_stream_info_h = NULL;
     }
-    if(band_levels)
+    if(band_levels) {
       free(band_levels);
-       if(code)
+      band_levels = NULL;
+    }
+    if (code) {
       free(code);
+      code = NULL;
+    }
     if(stream_info.album)
       free(stream_info.album);
     if(stream_info.artist)
@@ -215,10 +220,13 @@ void utc_media_player_cleanup(void)
       free(stream_info.title);
     if(stream_info.year)
       free(stream_info.year);
-       if(stream_info.audio_codec)
+    if(stream_info.audio_codec)
       free(stream_info.audio_codec);
     if(stream_info.video_codec)
       free(stream_info.video_codec);
+
+    stream_info.album = stream_info.artist = stream_info.author = stream_info.genre = stream_info.title = stream_info.year
+      = stream_info.audio_codec = stream_info.video_codec = NULL;
 }
 
 /**