Fix memory leak

This will cause a crash when the bitmap is a valid image: the `gbitmap_create_with_data()` function does not copy the bitmap data. You need to keep it allocated. The app will free it when it is done using that bitmap.