From 53d779e680b56506f5e882fe777206ef45e0ff79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 4 Jul 2008 15:25:46 +0200 Subject: Use calloc to allocate the area for the OSD. --HG-- extra : transplant_source : %99%9B%D5%B3Ro%87%BFV%E9%2BY%AA%83QE/%CD%5D%ED --- src/xine-engine/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c index 36ce47e44..05acd4779 100644 --- a/src/xine-engine/osd.c +++ b/src/xine-engine/osd.c @@ -145,7 +145,7 @@ static osd_object_t *XINE_MALLOC osd_new_object (osd_renderer_t *this, int width osd->width = width; osd->height = height; - osd->area = xine_xmalloc( width * height ); + osd->area = calloc(width, height); osd->x1 = width; osd->y1 = height; -- cgit v1.2.3