Changeset 2934


Ignore:
Timestamp:
10/12/08 16:03:42 (5 years ago)
Author:
sam
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.