Gtk3: cleanup.

This commit is contained in:
zeljan1 2025-01-14 12:00:32 +01:00
parent 0cf93bfab9
commit e0ae1a927a

View File

@ -2638,11 +2638,8 @@ end;
procedure TGtk3DeviceContext.SetImage(AImage: TGtk3Image);
var
APixBuf: PGdkPixbuf;
AXor: PCairo_t;
begin
FCurrentImage := AImage;
//See what cairo is destroyed !
AXor := FXorCairo;
cairo_destroy(pcr);
APixBuf := AImage.Handle;
if not Gtk3IsGdkPixbuf(APixBuf) then