Free allocated X resource value. (#2620)

This fixes a little memory leak.
This commit is contained in:
Ingo Bürk 2017-01-02 15:56:28 +01:00 committed by Michael Stapelberg
parent 8d739b7fe1
commit 25d27c5b2e
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}