summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-01-05 13:15:47 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-05 14:59:19 +0100
commitec104d7a5480b334cbbdc41d1536670585da6bba (patch)
treea20793b0c5039e140af229ee51fae291f90b8e84 /src/plugins
parent689c4009fb9be348f9137a9092b068e056a3d8b3 (diff)
Free the replies
Change-Id: I719bd95d94f3bfd41eeb09a49ac3e2701a516619 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/xcb/qxcbclipboard.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbclipboard.cpp b/src/plugins/platforms/xcb/qxcbclipboard.cpp
index 24de78861f..0c6e52508b 100644
--- a/src/plugins/platforms/xcb/qxcbclipboard.cpp
+++ b/src/plugins/platforms/xcb/qxcbclipboard.cpp
@@ -213,6 +213,7 @@ QXcbClipboard::~QXcbClipboard()
"clipboard manager in a reasonable time");
}
}
+ free(reply);
}
}
@@ -595,6 +596,7 @@ bool QXcbClipboard::clipboardReadProperty(xcb_window_t win, xcb_atom_t property,
xcb_get_property_cookie_t cookie = Q_XCB_CALL(xcb_get_property(xcb_connection(), false, win, property, XCB_GET_PROPERTY_TYPE_ANY, 0, 0));
xcb_get_property_reply_t *reply = xcb_get_property_reply(xcb_connection(), cookie, 0);
if (!reply || reply->type == XCB_NONE) {
+ free(reply);
buffer->resize(0);
return false;
}