Skip to content

Commit

Permalink
Free allocated X resource value. (i3#2620)
Browse files Browse the repository at this point in the history
This fixes a little memory leak.
  • Loading branch information
Airblader authored and syrrim committed Feb 3, 2017
1 parent cae44f8 commit 2d206eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libi3/dpi.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2d206eb

Please sign in to comment.