]> git.sur5r.net Git - i3/i3/blobdiff - libi3/dpi.c
Merge branch 'next' into master
[i3/i3] / libi3 / dpi.c
index a2c40319a52b492fcd57b6168495cc5d127257af..d15e35be78effe198e52e569d85bd2c8025a927e 100644 (file)
@@ -49,14 +49,12 @@ void init_dpi(void) {
         dpi = 0;
         goto init_dpi_end;
     }
-    dpi = (long)round(in_dpi);
+    dpi = lround(in_dpi);
 
     DLOG("Found Xft.dpi = %ld.\n", dpi);
 
 init_dpi_end:
-    if (resource != NULL) {
-        free(resource);
-    }
+    free(resource);
 
     if (database != NULL) {
         xcb_xrm_database_free(database);