* fixed unreferencing nil colormap

git-svn-id: trunk@11932 -
This commit is contained in:
marc 2007-09-03 23:09:13 +00:00
parent 69bf6a17fc
commit c640644c8f

View File

@ -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;