mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 03:27:32 +01:00
Merge branch 'gtk2devicecontext-doublefree-refcount-fix' into 'main'
LCL-GTK2: Fix double free due to wrong refcount during SaveDC/RestoreDC See merge request freepascal.org/lazarus/lazarus!231
This commit is contained in:
commit
614f1a392e
@ -681,6 +681,8 @@ begin
|
||||
|
||||
FWithChildWindows := ASource.FWithChildWindows;
|
||||
FDrawable := ASource.FDrawable;
|
||||
if Assigned(ASource.FPixbuf) then gdk_pixbuf_ref(ASource.FPixbuf);
|
||||
if Assigned(FPixbuf) then gdk_pixbuf_unref(FPixbuf);
|
||||
FPixbuf := ASource.Pixbuf;
|
||||
FOriginalDrawable := ASource.FOriginalDrawable;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user