From 297858d10c81b8189a897e14ae6c2f2f68d8723b Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 25 Dec 2008 08:35:51 +0000 Subject: [PATCH] calloc not malloc! bad patches! SVN revision: 38318 --- legacy/emotion/src/modules/xine/emotion_xine_vo_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c b/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c index 7e3c66b4c4..e3bf7d59e5 100644 --- a/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c +++ b/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c @@ -311,7 +311,7 @@ _emotion_frame_alloc(vo_driver_t *vo_driver) dv = (Emotion_Driver *)vo_driver; // printf("emotion: _emotion_frame_alloc()\n"); - fr = (Emotion_Frame *)malloc(sizeof(Emotion_Frame)); + fr = (Emotion_Frame *)calloc(1, sizeof(Emotion_Frame)); if (!fr) return NULL; fr->vo_frame.base[0] = NULL;