Ignore:
Timestamp:
Jul 29, 2008, 1:49:05 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Free surfaces allocated by pipi_getpixels() in pipi_free().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec.c

    r2605 r2607  
    5252void pipi_free(pipi_image_t *img)
    5353{
     54    unsigned int i;
     55
     56    for(i = 0; i < PIPI_PIXELS_MAX; i++)
     57        if(i != img->codec_format && img->p[i].pixels)
     58            free(img->p[i].pixels);
     59
    5460#if USE_SDL
    5561    return pipi_free_sdl(img);
Note: See TracChangeset for help on using the changeset viewer.