summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:15:26 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:15:26 +0100
commit485a597194d373aa233017be47c8cfa1b92748d7 (patch)
tree13bda97eec8bcae49d1188de140428eb92414c4f /src
parentd3c734f256cf1f78042e322f2bdfab7dfe8f5967 (diff)
downloadxine-lib-485a597194d373aa233017be47c8cfa1b92748d7.tar.gz
xine-lib-485a597194d373aa233017be47c8cfa1b92748d7.tar.bz2
Don't test for the pointer before freeing.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_qt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c
index b46cbc593..f9b14f9e8 100644
--- a/src/demuxers/demux_qt.c
+++ b/src/demuxers/demux_qt.c
@@ -651,8 +651,7 @@ static void free_qt_info(qt_info *info) {
for (j = 0; j < info->traks[i].stsd_atoms_count; j++) {
if (info->traks[i].type == MEDIA_AUDIO) {
free(info->traks[i].stsd_atoms[j].audio.properties_atom);
- if (info->traks[i].stsd_atoms[j].audio.wave)
- free(info->traks[i].stsd_atoms[j].audio.wave);
+ free(info->traks[i].stsd_atoms[j].audio.wave);
} else if (info->traks[i].type == MEDIA_VIDEO)
free(info->traks[i].stsd_atoms[j].video.properties_atom);
}