mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 20:00:47 +02:00
* fixed unreferencing nil colormap
git-svn-id: trunk@11932 -
This commit is contained in:
parent
69bf6a17fc
commit
c640644c8f
@ -1942,7 +1942,8 @@ begin
|
||||
GdiObject^.SystemVisual := False;
|
||||
end;
|
||||
|
||||
gdk_colormap_unref(GdiObject^.Colormap);
|
||||
if GdiObject^.Colormap <> nil
|
||||
then gdk_colormap_unref(GdiObject^.Colormap);
|
||||
GdiObject^.Colormap := gdk_colormap_new(GdiObject^.Visual, GdkFalse);
|
||||
|
||||
GdiObject^.GDIBitmapType := gbPixmap;
|
||||
|
Loading…
Reference in New Issue
Block a user