summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_opengl.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 15:55:33 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 15:55:33 +0200
commit1e71123be300aa08325aca68f12d54e7149bd820 (patch)
tree00f2e457fd5a860d70deb5008eb44c60da0dbbde /src/video_out/video_out_opengl.c
parentc99cd9519a56b2d7c60fa30e9fecd02f08336671 (diff)
downloadxine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.gz
xine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.bz2
Remove a new bunch of xine_malloc() calls.
Also don't reset memory after it's allocated if we do that with calloc.
Diffstat (limited to 'src/video_out/video_out_opengl.c')
-rw-r--r--src/video_out/video_out_opengl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c
index 46fffabf8..9dcfd4f2e 100644
--- a/src/video_out/video_out_opengl.c
+++ b/src/video_out/video_out_opengl.c
@@ -1875,8 +1875,7 @@ static vo_driver_t *opengl_open_plugin (video_driver_class_t *class_gen, const v
this->drawable, X11OSD_SHAPED);
XUnlockDisplay (this->display);
- render_fun_names = xine_xmalloc ((sizeof(opengl_rb)/sizeof(opengl_render_t)+1)
- * sizeof (const char *));
+ render_fun_names = calloc((sizeof(opengl_rb)/sizeof(opengl_render_t)+1), sizeof(const char*));
for (i = 0; i < sizeof (opengl_rb) / sizeof (opengl_render_t); i++)
render_fun_names[i] = opengl_rb[i].name;
render_fun_names[i] = NULL;