mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 08:36:55 +01:00
- Replaced all free() with wfree() where appropriate
- Fixed some memory leaks
This commit is contained in:
1 parent
581ab58f70
commit
497e34b6b8
72 files changed
+545
-539
No files matched your search
+4
-4
@@ -50,9 +50,9 @@ generalize_xlfd (const char *xlfd)
|
||||
"-*-*-*-*-*-*-%s-*-*-*-*-*-*-*,*",
|
||||
xlfd, weight, slant, pxlsz, pxlsz);
|
||||
|
||||
free(pxlsz);
|
||||
free(slant);
|
||||
free(weight);
|
||||
wfree(pxlsz);
|
||||
wfree(slant);
|
||||
wfree(weight);
|
||||
|
||||
return buf;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ W_CreateFontSetWithGuess(Display *dpy, char *xlfd, char ***missing,
|
||||
|
||||
fs = XCreateFontSet(dpy, xlfd, missing, nmissing, def_string);
|
||||
|
||||
free(xlfd);
|
||||
wfree(xlfd);
|
||||
return fs;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user