From: Diego 'F. P. <fla...@gm...> - 2008-07-04 14:37:11
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1215177946 -7200 # Node ID ad9a848a47ca7db78038436b9dbe63bf70402266 # Parent c62d44e625bdc040b04eab768ef70c1f572e4848 Use calloc to allocate the area for the OSD. diff -r ad9a848a47ca7db78038436b9dbe63bf70402266 -r c62d44e625bdc040b04eab768ef70c1f572e4848 src/xine-engine/osd.c --- a/src/xine-engine/osd.c Fri Jul 04 15:25:46 2008 +0200 +++ b/src/xine-engine/osd.c Fri Jul 04 15:25:28 2008 +0200 @@ -145,7 +145,7 @@ static osd_object_t *XINE_MALLOC osd_new osd->width = width; osd->height = height; - osd->area = xine_xmalloc( width * height ); + osd->area = calloc(width, height); osd->x1 = width; osd->y1 = height; |