From: Ingo Bürk Date: Mon, 2 Jan 2017 14:56:28 +0000 (+0100) Subject: Free allocated X resource value. (#2620) X-Git-Tag: 4.14~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25d27c5b2e0050e4bcc6bcdf8c03d7ab949b77db;p=i3%2Fi3 Free allocated X resource value. (#2620) This fixes a little memory leak. --- diff --git a/libi3/dpi.c b/libi3/dpi.c index d0d1bc68..ce85cacc 100644 --- a/libi3/dpi.c +++ b/libi3/dpi.c @@ -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); }