xcb: Fix a trivial reply leak

Change-Id: Ib9a0f96007e6dc5e125bfcd39bd1ef09baebae3b
Signed-off-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
bb10
Uli Schlachter 2012-11-01 19:25:55 +01:00 committed by The Qt Project
parent 546abecd8a
commit b4dd6faac3
1 changed files with 1 additions and 1 deletions

View File

@ -1570,8 +1570,8 @@ void QXcbWindow::handlePropertyNotifyEvent(const xcb_property_notify_event_t *ev
const long *data = (const long *)xcb_get_property_value(reply);
if (reply->length != 0 && XCB_WM_STATE_ICONIC == data[0])
newState = Qt::WindowMinimized;
free(reply);
}
free(reply);
} // WM_STATE: Quick check for 'Minimize'.
if (newState != Qt::WindowMinimized) { // Something else changed, get _NET_WM_STATE.
const NetWmStates states = netWmStates();