summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/generic/emotion_generic.c
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-08-28 17:00:50 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-08-28 17:00:50 +0000
commit4e31ca015ea34ca9f4300596673bfa511d6f9219 (patch)
tree1b544d805ef34daa43a601ffa118409dd83b886d /legacy/emotion/src/modules/generic/emotion_generic.c
parentde76a70b6b3160fc37289e1899ace8f84def08ef (diff)
emotion: revert "free channels only if there's channel
to free" This reverts commit rev 75741. SVN revision: 75796
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/generic/emotion_generic.c6
1 files 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)
390 int i; 390 int i;
391 for (i = 0; i < ev->audio_channels_count; i++) 391 for (i = 0; i < ev->audio_channels_count; i++)
392 eina_stringshare_del(ev->audio_channels[i].name); 392 eina_stringshare_del(ev->audio_channels[i].name);
393 if (ev->audio_channels_count) free(ev->audio_channels); 393 free(ev->audio_channels);
394 ev->audio_channels_count = 0; 394 ev->audio_channels_count = 0;
395} 395}
396 396
@@ -400,7 +400,7 @@ _video_channels_free(Emotion_Generic_Video *ev)
400 int i; 400 int i;
401 for (i = 0; i < ev->video_channels_count; i++) 401 for (i = 0; i < ev->video_channels_count; i++)
402 eina_stringshare_del(ev->video_channels[i].name); 402 eina_stringshare_del(ev->video_channels[i].name);
403 if (ev->video_channels_count) free(ev->video_channels); 403 free(ev->video_channels);
404 ev->video_channels_count = 0; 404 ev->video_channels_count = 0;
405} 405}
406 406
@@ -410,7 +410,7 @@ _spu_channels_free(Emotion_Generic_Video *ev)
410 int i; 410 int i;
411 for (i = 0; i < ev->spu_channels_count; i++) 411 for (i = 0; i < ev->spu_channels_count; i++)
412 eina_stringshare_del(ev->spu_channels[i].name); 412 eina_stringshare_del(ev->spu_channels[i].name);
413 if (ev->spu_channels_count) free(ev->spu_channels); 413 free(ev->spu_channels);
414 ev->spu_channels_count = 0; 414 ev->spu_channels_count = 0;
415} 415}
416 416