Gtk2: convert debugln to compile time warning / no need to output this to console, even in user apps

git-svn-id: trunk@61827 -
This commit is contained in:
martin 2019-09-08 16:01:12 +00:00
parent 6c9e20c06f
commit e393217c1c

View File

@ -4166,7 +4166,8 @@ begin
Result := g_object_get_data(PGObject(MainWidget), 'widgetinfo');
if Assigned(Result) then Exit;
Result := CreateWidgetInfo(MainWidget);
DebugLn('GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak.');
{$WARNING GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak.}
//DebugLn('GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak.');
// use the main widget as default
Result^.CoreWidget := PGtkWidget(MainWidget);
end;