From 4e31ca015ea34ca9f4300596673bfa511d6f9219 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Tue, 28 Aug 2012 17:00:50 +0000 Subject: [PATCH] emotion: revert "free channels only if there's channel to free" This reverts commit rev 75741. SVN revision: 75796 --- legacy/emotion/src/modules/generic/emotion_generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/emotion/src/modules/generic/emotion_generic.c b/legacy/emotion/src/modules/generic/emotion_generic.c index 47e00a7a76..a7692712ca 100644 --- a/legacy/emotion/src/modules/generic/emotion_generic.c +++ b/legacy/emotion/src/modules/generic/emotion_generic.c @@ -390,7 +390,7 @@ _audio_channels_free(Emotion_Generic_Video *ev) int i; for (i = 0; i < ev->audio_channels_count; i++) eina_stringshare_del(ev->audio_channels[i].name); - if (ev->audio_channels_count) free(ev->audio_channels); + free(ev->audio_channels); ev->audio_channels_count = 0; } @@ -400,7 +400,7 @@ _video_channels_free(Emotion_Generic_Video *ev) int i; for (i = 0; i < ev->video_channels_count; i++) eina_stringshare_del(ev->video_channels[i].name); - if (ev->video_channels_count) free(ev->video_channels); + free(ev->video_channels); ev->video_channels_count = 0; } @@ -410,7 +410,7 @@ _spu_channels_free(Emotion_Generic_Video *ev) int i; for (i = 0; i < ev->spu_channels_count; i++) eina_stringshare_del(ev->spu_channels[i].name); - if (ev->spu_channels_count) free(ev->spu_channels); + free(ev->spu_channels); ev->spu_channels_count = 0; }