mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 15:39:49 +02:00
Gtk3: cleanup.
This commit is contained in:
parent
0cf93bfab9
commit
e0ae1a927a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user