diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-01-25 13:30:34 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-01-25 13:30:34 +0000 |
commit | d9e8c92bbc90bc0c2d8a4b71059936176bf2d6d0 (patch) | |
tree | 9624bebc72661bd7d0788f8c8c1f4f6745a2a026 /src/post/audio/stretch.c | |
parent | 4e96930cdea7c448f8a47405166575a54c454588 (diff) | |
download | xine-lib-d9e8c92bbc90bc0c2d8a4b71059936176bf2d6d0.tar.gz xine-lib-d9e8c92bbc90bc0c2d8a4b71059936176bf2d6d0.tar.bz2 |
Always use xine_xmalloc in plugin class init; avoids uninitialised pointers.
Diffstat (limited to 'src/post/audio/stretch.c')
-rw-r--r-- | src/post/audio/stretch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |