Changeset 2934 for libpipi


Ignore:
Timestamp:
Oct 12, 2008, 4:03:42 PM (11 years ago)
Author:
Sam Hocevar
Message:

libpipi: sometimes imlib_load_image() succeeds but imlib_image_get_data()
returns NULL. Working around this properly.

File:
1 edited

Legend:

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

    r2902 r2934  
    3939
    4040    imlib_context_set_image(priv);
     41
     42    if(!imlib_image_get_data())
     43    {
     44        imlib_free_image();
     45        return NULL;
     46    }
     47
    4148    img = pipi_new(imlib_image_get_width(), imlib_image_get_height());
    4249
Note: See TracChangeset for help on using the changeset viewer.