mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 23:19:31 +02:00
Qt: fixed memleak in TQtWidgetSet.DCSetPixel.
git-svn-id: trunk@51030 -
This commit is contained in:
parent
39da734bec
commit
2f9f2db741
@ -1248,10 +1248,11 @@ begin
|
||||
try
|
||||
ColorRef := TColorRef(ColorToRGB(AColor));
|
||||
QColor_fromRgb(@Color, Red(ColorRef), Green(ColorRef), Blue(ColorRef));
|
||||
QPainter_setPen(Painter, @Color);
|
||||
QPainter_setPen(Painter, PQColor(@Color));
|
||||
QPainter_drawPoint(Painter, X,Y);
|
||||
finally
|
||||
QPainter_setPen(Painter, Pen);
|
||||
QPen_destroy(Pen);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user