Gtk3: fixed mem leak when using gtk_widget_get_style(). Patch by Anton Kavalenka. issue #41371

This commit is contained in:
zeljan1 2025-01-28 23:01:30 +01:00
parent e454516c68
commit 67ff91cf1f

View File

@ -1087,6 +1087,8 @@ begin
end;
{$ENDIF}
end;
if Assigned(MainStyle) then
MainStyle^.unref;
end;
function GetStyleWithName(const WName: String): PStyleObject;