]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Fix memleaks by avoiding _checked variants when discarding the result
[i3/i3] / src / main.c
index 367ebac16688ede9b8132138eed3dc389efb9491..5362d0775e53c175b96619a5dbfd93c74f0fcaf9 100644 (file)
@@ -826,7 +826,7 @@ int main(int argc, char *argv[]) {
                       (uint32_t[]){XCB_GX_COPY, ~0, XCB_FILL_STYLE_SOLID, XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS});
 
         xcb_copy_area(conn, root->root, pixmap, gc, 0, 0, 0, 0, width, height);
-        xcb_change_window_attributes_checked(conn, root->root, XCB_CW_BACK_PIXMAP, (uint32_t[]){pixmap});
+        xcb_change_window_attributes(conn, root->root, XCB_CW_BACK_PIXMAP, (uint32_t[]){pixmap});
         xcb_flush(conn);
         xcb_free_gc(conn, gc);
         xcb_free_pixmap(conn, pixmap);