summaryrefslogtreecommitdiff
path: root/legacy/emotion/src
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-08-28 17:00:56 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-08-28 17:00:56 +0000
commit09f40167fe3087d1541e34cc2479371950364771 (patch)
tree3cfa92ea254fe0531ba171c6dab43b18f05c3a85 /legacy/emotion/src
parent4e31ca015ea34ca9f4300596673bfa511d6f9219 (diff)
emotion: fix tracks info free
fix free with pointer not nullified SVN revision: 75797
Diffstat (limited to 'legacy/emotion/src')
-rw-r--r--legacy/emotion/src/modules/generic/emotion_generic.c3
1 files changed, 3 insertions, 0 deletions
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)
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 free(ev->audio_channels); 393 free(ev->audio_channels);
394 ev->audio_channels = NULL;
394 ev->audio_channels_count = 0; 395 ev->audio_channels_count = 0;
395} 396}
396 397
@@ -401,6 +402,7 @@ _video_channels_free(Emotion_Generic_Video *ev)
401 for (i = 0; i < ev->video_channels_count; i++) 402 for (i = 0; i < ev->video_channels_count; i++)
402 eina_stringshare_del(ev->video_channels[i].name); 403 eina_stringshare_del(ev->video_channels[i].name);
403 free(ev->video_channels); 404 free(ev->video_channels);
405 ev->video_channels = NULL;
404 ev->video_channels_count = 0; 406 ev->video_channels_count = 0;
405} 407}
406 408
@@ -411,6 +413,7 @@ _spu_channels_free(Emotion_Generic_Video *ev)
411 for (i = 0; i < ev->spu_channels_count; i++) 413 for (i = 0; i < ev->spu_channels_count; i++)
412 eina_stringshare_del(ev->spu_channels[i].name); 414 eina_stringshare_del(ev->spu_channels[i].name);
413 free(ev->spu_channels); 415 free(ev->spu_channels);
416 ev->spu_channels = NULL;
414 ev->spu_channels_count = 0; 417 ev->spu_channels_count = 0;
415} 418}
416 419