diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-07-07 15:04:29 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-07-07 15:04:29 +0000 |
commit | cac797c2eb278032b3f58c373a7b75ee9835c1c5 (patch) | |
tree | 271be772a8119d29aecc6b415fd541a0eb59dee1 /gst | |
parent | 05f3962c119d44e1a911d81a47297414086e84f8 (diff) |
gst/goom/filters.c: Avoid goom coredumping by clearing memory.
Original commit message from CVS:
* gst/goom/filters.c: (zoomFilterSetResolution):
Avoid goom coredumping by clearing memory.
Fixes 345679.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/goom/filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/goom/filters.c b/gst/goom/filters.c index 866885be..b898e89c 100644 --- a/gst/goom/filters.c +++ b/gst/goom/filters.c @@ -350,7 +350,7 @@ zoomFilterSetResolution (GoomData * gd, ZoomFilterData * zf) coeffs = (guint32 *) ((1 + ((unsigned int) (freecoeffs)) / 128) * 128); #else - zf->buffer = malloc (sizeof (guint32) * zf->buffsize * 5); + zf->buffer = calloc (sizeof (guint32), zf->buffsize * 5); zf->pos10 = zf->buffer; zf->c[0] = zf->pos10 + zf->buffsize; zf->c[1] = zf->c[0] + zf->buffsize; |