qt5-qtwayland/0030-Check-pointer-for-null-before-use-in-ASSERT.patch

35 lines
1.1 KiB
Diff
Raw Normal View History

2023-06-13 07:07:13 +00:00
From b14eb8fdac3bfa2763a83541a3e4764c0eac153e Mon Sep 17 00:00:00 2001
2022-03-08 11:00:00 +00:00
From: Roman Genkhel <roman.genhel@lge.com>
Date: Thu, 12 Nov 2020 12:21:51 +0300
2023-06-13 07:07:13 +00:00
Subject: [PATCH 30/51] Check pointer for null before use in ASSERT
2022-03-08 11:00:00 +00:00
Task-number: QTBUG-85195
Change-Id: I331e54f6e58aa9d536351a55223610c60b3cb414
Reviewed-by: David Edmundson <davidedmundson@kde.org>
(cherry picked from commit e235e8ddb1fc3cc5ab3b70b1fb285770b2c8c9ca)
---
src/client/qwaylandwindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
2023-04-11 11:34:57 +00:00
index 9e82c174..0a5fc15b 100644
2022-03-08 11:00:00 +00:00
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
2022-09-20 15:38:03 +00:00
@@ -536,12 +536,12 @@ void QWaylandWindow::sendRecursiveExposeEvent()
2022-03-08 11:00:00 +00:00
void QWaylandWindow::attach(QWaylandBuffer *buffer, int x, int y)
{
- Q_ASSERT(!buffer->committed());
2022-09-20 15:38:03 +00:00
QReadLocker locker(&mSurfaceLock);
if (mSurface == nullptr)
return;
2022-03-08 11:00:00 +00:00
if (buffer) {
+ Q_ASSERT(!buffer->committed());
handleUpdate();
buffer->setBusy();
--
2023-06-13 07:07:13 +00:00
2.40.1
2022-03-08 11:00:00 +00:00