[Lazarus] Gtk2 missed try-finally

Alexey aaa5500 at ya.ru
Tue Jul 25 12:16:50 CEST 2017


gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap + 
DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC:

     finally
       ReleaseDC(HDC({%H-}PtrUInt(DestWidget)),DestDC);
     end;
   finally
     Bitmap.Free;
   end;

-- 
Regards,
Alexey



More information about the Lazarus mailing list