From 3840424ca421b186ae4aa24281536a86f850d744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 18 Dec 2007 17:09:44 +0100 Subject: Use xine_xmalloc to allocate the plugin structures, so that they get zeroed out. --- src/post/planar/boxblur.c | 2 +- src/post/planar/denoise3d.c | 2 +- src/post/planar/eq.c | 2 +- src/post/planar/eq2.c | 2 +- src/post/planar/expand.c | 2 +- src/post/planar/fill.c | 2 +- src/post/planar/invert.c | 2 +- src/post/planar/noise.c | 2 +- src/post/planar/pp.c | 2 +- src/post/planar/unsharp.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/post/planar/boxblur.c b/src/post/planar/boxblur.c index 66af08e5c..924e58bf0 100644 --- a/src/post/planar/boxblur.c +++ b/src/post/planar/boxblur.c @@ -134,7 +134,7 @@ static int boxblur_draw(vo_frame_t *frame, xine_stream_t *stream); void *boxblur_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c index 647ab075e..a59de5479 100644 --- a/src/post/planar/denoise3d.c +++ b/src/post/planar/denoise3d.c @@ -174,7 +174,7 @@ static int denoise3d_draw(vo_frame_t *frame, xine_stream_t *stream); void *denoise3d_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/eq.c b/src/post/planar/eq.c index cb28cafa2..2cf6464aa 100644 --- a/src/post/planar/eq.c +++ b/src/post/planar/eq.c @@ -226,7 +226,7 @@ static int eq_draw(vo_frame_t *frame, xine_stream_t *stream); void *eq_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c index 277aca00e..0d16cc32a 100644 --- a/src/post/planar/eq2.c +++ b/src/post/planar/eq2.c @@ -407,7 +407,7 @@ static int eq2_draw(vo_frame_t *frame, xine_stream_t *stream); void *eq2_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/expand.c b/src/post/planar/expand.c index df5fa874e..f2f9fc748 100644 --- a/src/post/planar/expand.c +++ b/src/post/planar/expand.c @@ -128,7 +128,7 @@ static int32_t expand_overlay_add_event(video_overlay_manager_t *this_gen void *expand_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/fill.c b/src/post/planar/fill.c index 14bd55102..51272600d 100644 --- a/src/post/planar/fill.c +++ b/src/post/planar/fill.c @@ -46,7 +46,7 @@ static int fill_draw(vo_frame_t *frame, xine_stream_t *stream); void *fill_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/invert.c b/src/post/planar/invert.c index dd1d7ac07..98e0b84f9 100644 --- a/src/post/planar/invert.c +++ b/src/post/planar/invert.c @@ -47,7 +47,7 @@ static int invert_draw(vo_frame_t *frame, xine_stream_t *stream); void *invert_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c index 53dc3065d..5a2a2ac0a 100644 --- a/src/post/planar/noise.c +++ b/src/post/planar/noise.c @@ -443,7 +443,7 @@ static int noise_draw(vo_frame_t *frame, xine_stream_t *stream); void *noise_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/pp.c b/src/post/planar/pp.c index 22a25fc90..c7cbbbceb 100644 --- a/src/post/planar/pp.c +++ b/src/post/planar/pp.c @@ -149,7 +149,7 @@ static int pp_draw(vo_frame_t *frame, xine_stream_t *stream); void *pp_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c index b850b05b7..6b9b5b9fa 100644 --- a/src/post/planar/unsharp.c +++ b/src/post/planar/unsharp.c @@ -267,7 +267,7 @@ static int unsharp_draw(vo_frame_t *frame, xine_stream_t *stream); void *unsharp_init_plugin(xine_t *xine, void *data) { - post_class_t *class = (post_class_t *)malloc(sizeof(post_class_t)); + post_class_t *class = (post_class_t *)xine_xmalloc(sizeof(post_class_t)); if (!class) return NULL; -- cgit v1.2.3