]> git.sur5r.net Git - i3/i3lock/blobdiff - xinerama.c
i3lock: Stop leaking the image_path dup. (#93)
[i3/i3lock] / xinerama.c
index e4b87a4b8fdc4cece0969e54a8f628325ff6b35a..3a1c7565b6377cd8acf494d902f0b0be1fa71979 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * vim:ts=4:sw=4:expandtab
  *
- * © 2010-2012 Michael Stapelberg
+ * © 2010 Michael Stapelberg
  *
  * See LICENSE for licensing information
  *
@@ -46,6 +46,7 @@ void xinerama_init(void) {
     }
 
     xinerama_active = true;
+    free(reply);
 }
 
 void xinerama_query_screens(void) {
@@ -81,8 +82,8 @@ void xinerama_query_screens(void) {
         xr_resolutions[screen].width = screen_info[screen].width;
         xr_resolutions[screen].height = screen_info[screen].height;
         DEBUG("found Xinerama screen: %d x %d at %d x %d\n",
-                        screen_info[screen].width, screen_info[screen].height,
-                        screen_info[screen].x_org, screen_info[screen].y_org);
+              screen_info[screen].width, screen_info[screen].height,
+              screen_info[screen].x_org, screen_info[screen].y_org);
     }
 
     free(reply);