fixed mem leak

git-svn-id: trunk@10299 -
This commit is contained in:
jesus 2006-12-05 11:45:47 +00:00
parent 470920716e
commit a6d43caf21
2 changed files with 2 additions and 1 deletions

View File

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

View File

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