calloc not malloc! bad patches!
authorraster <raster>
Thu, 25 Dec 2008 08:35:51 +0000 (08:35 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Dec 2008 08:35:51 +0000 (08:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@38318 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/xine/emotion_xine_vo_out.c

index 7e3c66b..e3bf7d5 100644 (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;