Commit 1af582d5 authored by Jan Schmidt's avatar Jan Schmidt

gst/goom/: Free filter data when cleaning up. (Fixes: #334995)

Original commit message from CVS:
* gst/goom/filters.c: (zoomFilterDestroy):
* gst/goom/goom_core.c: (goom_close):
Free filter data when cleaning up. (Fixes: #334995)
parent d1619b70
2006-03-20 Jan Schmidt <thaytan@mad.scientist.com>
* gst/goom/filters.c: (zoomFilterDestroy):
* gst/goom/goom_core.c: (goom_close):
Free filter data when cleaning up. (Fixes: #334995)
2006-03-17 Tim-Philipp Müller <tim at centricular dot net>
* configure.ac:
......
......@@ -413,8 +413,13 @@ zoomFilterSetResolution (GoomData * gd, ZoomFilterData * zf)
void
zoomFilterDestroy (ZoomFilterData * zf)
{
if (zf)
if (zf) {
if (zf->firedec)
free (zf->firedec);
if (zf->buffer)
free (zf->buffer);
free (zf);
}
}
/*===============================================================*/
......
......@@ -368,8 +368,7 @@ goom_update (GoomData * goomdata, gint16 data[2][512])
/* si on est dans un goom : afficher les lignes... */
if (goomdata->agoom > 15)
goom_lines
(goomdata, data, ((pzfd->middleX == resolx / 2)
goom_lines (goomdata, data, ((pzfd->middleX == resolx / 2)
&& (pzfd->middleY == resoly / 2)
&& (pzfd->mode != WATER_MODE))
? (goomdata->lineMode / 10) : 0, goomdata->p2, goomdata->agoom - 15);
......@@ -404,6 +403,10 @@ goom_close (GoomData * goomdata)
free (goomdata->pixel);
if (goomdata->back != NULL)
free (goomdata->back);
if (goomdata->zfd != NULL) {
zoomFilterDestroy (goomdata->zfd);
goomdata->zfd = NULL;
}
goomdata->pixel = goomdata->back = NULL;
RAND_CLOSE (goomdata);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment