Bugfix: Free property replies in their handlers

This commit is contained in:
Michael Stapelberg
2011-07-31 17:12:37 +02:00
parent d3e3339a05
commit 4875868689
2 changed files with 14 additions and 3 deletions

@ -986,9 +986,8 @@ static int property_notify(uint8_t state, xcb_window_t window, xcb_atom_t atom)
propr = xcb_get_property_reply(conn, cookie, 0);
}
ret = handler->cb(NULL, conn, state, window, atom, propr);
FREE(propr);
return ret;
/* the handler will free() the reply */
return handler->cb(NULL, conn, state, window, atom, propr);
}
/*