mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 22:59:17 +02:00
fixed mem leak
git-svn-id: trunk@10299 -
This commit is contained in:
parent
470920716e
commit
a6d43caf21
@ -4238,6 +4238,7 @@ begin
|
||||
|
||||
// MWE:
|
||||
// TODO: Check: Why is there widgetinfo on subwidgets ???
|
||||
FreeWidgetInfo(PGtkCombo(Widget)^.List);
|
||||
FreeWidgetInfo(PGtkCombo(Widget)^.Entry);
|
||||
FreeWidgetInfo(PGtkCombo(Widget)^.Button);
|
||||
end;
|
||||
|
@ -8591,7 +8591,7 @@ begin
|
||||
DbgOut(' OldFocus=',GetWidgetDebugReport(PGtkWidget(Result)));
|
||||
DebugLn('');
|
||||
if not GTK_WIDGET_VISIBLE(Widget) then
|
||||
RaiseException('TGtkWidgetSet.SetFocus: Widget is not visible');
|
||||
Raise Exception('TGtkWidgetSet.SetFocus: Widget is not visible');
|
||||
{$EndIf}
|
||||
|
||||
if Result=hWnd then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user