From d9e8c92bbc90bc0c2d8a4b71059936176bf2d6d0 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Fri, 25 Jan 2008 13:30:34 +0000 Subject: Always use xine_xmalloc in plugin class init; avoids uninitialised pointers. --- src/post/audio/stretch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/post/audio/stretch.c') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index bc079fd8d..5a0382895 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -662,7 +662,7 @@ static post_plugin_t *stretch_open_plugin(post_class_t *class_gen, int inputs, /* plugin class initialization function */ void *stretch_init_plugin(xine_t *xine, void *data) { - post_class_stretch_t *class = (post_class_stretch_t *)malloc(sizeof(post_class_stretch_t)); + post_class_stretch_t *class = (post_class_stretch_t *)xine_xmalloc(sizeof(post_class_stretch_t)); if (!class) return NULL; -- cgit v1.2.3