[MPlayer-cvslog] r35272 - trunk/libmpcodecs/vf_phase.c
reimar
subversion at mplayerhq.hu
Fri Oct 26 20:39:51 CEST 2012
Author: reimar
Date: Fri Oct 26 20:39:51 2012
New Revision: 35272
Log:
Make uninit function handle vf->priv being NULL.
This happens in the case where memory allocation for it fails.
Modified:
trunk/libmpcodecs/vf_phase.c
Modified: trunk/libmpcodecs/vf_phase.c
==============================================================================
--- trunk/libmpcodecs/vf_phase.c Fri Oct 26 20:31:11 2012 (r35271)
+++ trunk/libmpcodecs/vf_phase.c Fri Oct 26 20:39:51 2012 (r35272)
@@ -242,6 +242,8 @@ static int put_image(struct vf_instance
static void uninit(struct vf_instance *vf)
{
+ if (!vf->priv)
+ return;
free(vf->priv->buf[0]);
free(vf->priv->buf[1]);
free(vf->priv->buf[2]);
More information about the MPlayer-cvslog
mailing list