]> git.sur5r.net Git - i3/i3/blobdiff - src/window.c
Bugfix: Free property replies in their handlers
[i3/i3] / src / window.c
index b6aaae9e8f65e70539d3d5ebed1a5c3e3d694630..0449b1f53903df1b4714d95d9201837620d68145 100644 (file)
@@ -37,6 +37,8 @@ void window_update_class(i3Window *win, xcb_get_property_reply_t *prop, bool bef
         return;
 
     run_assignments(win);
+
+    free(prop);
 }
 
 /*
@@ -80,6 +82,8 @@ void window_update_name(i3Window *win, xcb_get_property_reply_t *prop, bool befo
         return;
 
     run_assignments(win);
+
+    free(prop);
 }
 
 /*
@@ -121,6 +125,8 @@ void window_update_name_legacy(i3Window *win, xcb_get_property_reply_t *prop, bo
         return;
 
     run_assignments(win);
+
+    free(prop);
 }
 
 /*
@@ -140,6 +146,8 @@ void window_update_leader(i3Window *win, xcb_get_property_reply_t *prop) {
     DLOG("Client leader changed to %08x\n", *leader);
 
     win->leader = *leader;
+
+    free(prop);
 }
 
 /*
@@ -159,6 +167,8 @@ void window_update_transient_for(i3Window *win, xcb_get_property_reply_t *prop)
     DLOG("Transient for changed to %08x\n", transient_for);
 
     win->transient_for = transient_for;
+
+    free(prop);
 }
 
 /*
@@ -179,4 +189,6 @@ void window_update_strut_partial(i3Window *win, xcb_get_property_reply_t *prop)
          strut[0], strut[1], strut[2], strut[3]);
 
     win->reserved = (struct reservedpx){ strut[0], strut[1], strut[2], strut[3] };
+
+    free(prop);
 }