Mercurial > mplayer.hg
comparison libmpcodecs/vf_blackframe.c @ 32537:8fa2f43cb760
Remove most of the NULL pointer check before free all over the code
author | cboesch |
---|---|
date | Sun, 14 Nov 2010 09:12:34 +0000 |
parents | a972c1a4a012 |
children | 7af3e6f901fd |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
113 static int control(struct vf_instance *vf, int request, void* data){ | 113 static int control(struct vf_instance *vf, int request, void* data){ |
114 return vf_next_control(vf,request,data); | 114 return vf_next_control(vf,request,data); |
115 } | 115 } |
116 | 116 |
117 static void uninit(struct vf_instance *vf) { | 117 static void uninit(struct vf_instance *vf) { |
118 if (vf->priv) free(vf->priv); | 118 free(vf->priv); |
119 } | 119 } |
120 | 120 |
121 static int vf_open(vf_instance_t *vf, char *args){ | 121 static int vf_open(vf_instance_t *vf, char *args){ |
122 vf->priv = malloc(sizeof(struct vf_priv_s)); | 122 vf->priv = malloc(sizeof(struct vf_priv_s)); |
123 if (!vf->priv) return 0; | 123 if (!vf->priv) return 0; |