]> git.mdlowis.com Git - proto/labwc.git/commit
rcxml.c: fix mem leak for repeated string config entries
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 15 Nov 2024 22:01:54 +0000 (23:01 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 16 Nov 2024 22:13:17 +0000 (22:13 +0000)
commit5c9cae71cdb693f5350684a80a3d8931e66259f0
tree934e06407b2b8e6fce30d1b99951a8f8e5581bae
parenta4204d3335cf0fed9a9355a857759e2e20757cb3
rcxml.c: fix mem leak for repeated string config entries

An example is
```xml
<theme>
  <name>Numix</name>
</theme>
<theme name="Numix" />
```

Including various other variants.
Also change all other `free(x); x = xstrdup(y)` calls to `xstrdup_replace()`.
src/config/rcxml.c