calloc not malloc! bad patches!

SVN revision: 38318
This commit is contained in:
Carsten Haitzler 2008-12-25 08:35:51 +00:00
parent 8b4a02c601
commit 297858d10c
1 changed files with 1 additions and 1 deletions

View File

@ -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;