Check pointer for null before use in ASSERT
Task-number: QTBUG-85195 Change-Id: I331e54f6e58aa9d536351a55223610c60b3cb414 Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
ad466182a7
commit
e1c5ff6e70
@ -547,8 +547,8 @@ void QWaylandWindow::sendRecursiveExposeEvent()
|
|||||||
|
|
||||||
void QWaylandWindow::attach(QWaylandBuffer *buffer, int x, int y)
|
void QWaylandWindow::attach(QWaylandBuffer *buffer, int x, int y)
|
||||||
{
|
{
|
||||||
Q_ASSERT(!buffer->committed());
|
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
|
Q_ASSERT(!buffer->committed());
|
||||||
handleUpdate();
|
handleUpdate();
|
||||||
buffer->setBusy();
|
buffer->setBusy();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user