Re: [Mesa-dev] [PATCH] gbm-dri: Duplicate image after checking its format.

2017-01-23 Thread Eric Engestrom
On Wednesday, 2016-12-21 10:55:28 +0100, mateuszx.potr...@intel.com wrote: > From: Mateusz Polrola > > If image will be duplicated before checking if its format is supported > it may leak memory, as duplicated image for non supported formats is > not being destroyed. > > Signed-off-by: Mateusz P

[Mesa-dev] [PATCH] gbm-dri: Duplicate image after checking its format.

2016-12-21 Thread mateuszx . potrola
From: Mateusz Polrola If image will be duplicated before checking if its format is supported it may leak memory, as duplicated image for non supported formats is not being destroyed. Signed-off-by: Mateusz Polrola --- src/gbm/backends/dri/gbm_dri.c | 4 ++-- 1 file changed, 2 insertions(+), 2