Free allocated X resource value. (#2620)
This fixes a little memory leak.
This commit is contained in:
parent
8d739b7fe1
commit
25d27c5b2e
|
@ -53,6 +53,10 @@ void init_dpi(void) {
|
|||
DLOG("Found Xft.dpi = %ld.\n", dpi);
|
||||
|
||||
init_dpi_end:
|
||||
if (resource != NULL) {
|
||||
free(resource);
|
||||
}
|
||||
|
||||
if (database != NULL) {
|
||||
xcb_xrm_database_free(database);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue