Skip to content
  • Christophe Fergeau's avatar
    Don't leak ARGB cursor data bo · 2bed9bff
    Christophe Fergeau authored
    qxl_load_cursor_argb() owns 2 references on the cursor_bo it creates:
    - one from the call to bo_alloc()
    - the second from a call to bo_output_bo_reloc()
    
    qxl_garbage_collect() release one of these refs, but the other one is
    never released, so ARGB cursor bos are leaked. This can cause out of
    memory issues, for example when running EL6 anaconda installer on a 2TB
    disk image (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1199355
    ).
    
    This commit release the extra ref right after calling push_cursor().
    This is similar to what is done in qxl_surface_put_image().
    2bed9bff