src/video/SDL_yuv_sw.c
changeset 1920 8a162bfdc838
parent 1895 c121d94672cb
child 1965 a788656ca29a
     1.1 --- a/src/video/SDL_yuv_sw.c	Wed Jul 19 08:46:57 2006 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Sat Jul 22 08:33:18 2006 +0000
     1.3 @@ -1054,12 +1054,11 @@
     1.4      int i;
     1.5      int CR, CB;
     1.6  
     1.7 -    swdata = (SDL_SW_YUVTexture *) SDL_malloc(sizeof(*swdata));
     1.8 +    swdata = (SDL_SW_YUVTexture *) SDL_calloc(1, sizeof(*swdata));
     1.9      if (!swdata) {
    1.10          SDL_OutOfMemory();
    1.11          return NULL;
    1.12      }
    1.13 -    SDL_zerop(swdata);
    1.14  
    1.15      switch (texture->format) {
    1.16      case SDL_PixelFormat_YV12: