From 09f40167fe3087d1541e34cc2479371950364771 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Tue, 28 Aug 2012 17:00:56 +0000 Subject: [PATCH] emotion: fix tracks info free fix free with pointer not nullified SVN revision: 75797 --- legacy/emotion/src/modules/generic/emotion_generic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/emotion/src/modules/generic/emotion_generic.c b/legacy/emotion/src/modules/generic/emotion_generic.c index a7692712ca..e4771ce822 100644 --- a/legacy/emotion/src/modules/generic/emotion_generic.c +++ b/legacy/emotion/src/modules/generic/emotion_generic.c @@ -391,6 +391,7 @@ _audio_channels_free(Emotion_Generic_Video *ev) for (i = 0; i < ev->audio_channels_count; i++) eina_stringshare_del(ev->audio_channels[i].name); free(ev->audio_channels); + ev->audio_channels = NULL; ev->audio_channels_count = 0; } @@ -401,6 +402,7 @@ _video_channels_free(Emotion_Generic_Video *ev) for (i = 0; i < ev->video_channels_count; i++) eina_stringshare_del(ev->video_channels[i].name); free(ev->video_channels); + ev->video_channels = NULL; ev->video_channels_count = 0; } @@ -411,6 +413,7 @@ _spu_channels_free(Emotion_Generic_Video *ev) for (i = 0; i < ev->spu_channels_count; i++) eina_stringshare_del(ev->spu_channels[i].name); free(ev->spu_channels); + ev->spu_channels = NULL; ev->spu_channels_count = 0; }