Files
bakkeby.st-flexipatch/patch
Bakkeby b8056cbf24 xresources: destroy Xrm database after resource load
st would hold on to a XrmDatabase reference for the lifetime of the
program due to how in resource_load the ret.addr of the database
would be referenced directly. This also meant that for every reload
st would be leaking another XrmDatabase reference.

This has been partially worked around by applying a strdup to make
a copy of the string in order to allow for the XrmDatabase to be
freed / destroyed. Consequently the char arrays / strings still
leak on reload.

We could pass *sdst to free beforehand, but that will only work if
that reference is guaranteed to be on the heap.
2026-01-29 21:28:16 +01:00
..
2022-09-24 11:04:38 +02:00
2025-02-20 10:18:17 +01:00
2025-02-20 10:18:17 +01:00
2020-03-21 16:41:43 +01:00
2020-03-29 15:38:16 +02:00
2020-03-29 15:38:16 +02:00
2024-03-13 10:33:51 +01:00
2024-11-25 20:48:52 +01:00
2024-03-13 10:33:51 +01:00
2024-03-13 10:33:51 +01:00
2020-01-07 14:05:53 +01:00
2020-01-07 14:05:53 +01:00
2021-05-09 09:25:22 +02:00
2021-05-09 09:25:22 +02:00
2025-02-20 22:36:51 +01:00
2025-02-20 22:36:51 +01:00