summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demuxer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-03 15:40:13 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-03 15:40:13 +0000
commit85f68b48b8cf57d85e88e43ee8ba9f55bee2d7b7 (patch)
treeaf97c2674def465414e5affb2390675415c7961f /libmpdemux/demuxer.c
parent3909deefdb3fafb97ace0b9d868f876c4684d2cd (diff)
downloadmpv-85f68b48b8cf57d85e88e43ee8ba9f55bee2d7b7.tar.bz2
mpv-85f68b48b8cf57d85e88e43ee8ba9f55bee2d7b7.tar.xz
don't alloc/free NULL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5470 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demuxer.c')
-rw-r--r--libmpdemux/demuxer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c
index fe707919f4..8b3bdf8bec 100644
--- a/libmpdemux/demuxer.c
+++ b/libmpdemux/demuxer.c
@@ -347,7 +347,7 @@ void ds_free_packs(demux_stream_t *ds){
demux_packet_t *dp=ds->first;
while(dp){
demux_packet_t *dn=dp->next;
- free(dp->buffer);
+ if(dp->buffer) free(dp->buffer);
free(dp);
dp=dn;
}