aboutsummaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2025-09-29 18:47:16 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2025-09-29 18:47:16 +0200
commit8b48986f4c730725367e2865e5ea24931855018f (patch)
tree378e3782f53f5aa945876cdf5070915ed25bc641 /drw.c
parent77f96d704bd16b04fe731da815a4e76c4e62decb (diff)
drw.c: drw_scm_free: call free inside
Because drw_scm_create() allocates it.
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drw.c b/drw.c
index 98dbaa8..9fdd1a4 100644
--- a/drw.c
+++ b/drw.c
@@ -215,6 +215,7 @@ drw_scm_free(Drw *drw, Clr *scm, size_t clrcount)
for (i = 0; i < clrcount; i++)
drw_clr_free(drw, &scm[i]);
+ free(scm);
}
void