-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Am 2016-05-08 um 11:31 schrieb Aaryaman Vasishta:
I think it's a good idea to explicitly test the increased refcount after this failing call.
I guess that there's some way to pass palletized images, e.g. by setting rgb = 0, palette_size != 0 and palette != NULL. This shouldn't be part of this patch though and I am fine with this code as it is.
On Sun, May 8, 2016 at 9:39 PM, Stefan Dösinger stefandoesinger@gmx.at wrote:
The refcount tests which happen following the leak do (indirectly) test the increased refcount. If I hadn't released d3drm1 here, the following refcount tests would fail.
Agreed, that also needs to be tested. I'll add that test in this patch and rework this function.
Cheers, Aaryaman