Fix a bug when the pixmap is released before being presented

Signed-off-by: Axel Davy <axel.davy@ens.fr>