summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDonald Carr <d@chaos-reins.com>2017-06-13 11:19:30 -0700
committerDonald Carr <d@chaos-reins.com>2017-06-16 22:41:55 +0000
commitaf4d463cc8f4f404ffe406f77a01fac5b4be49b7 (patch)
tree32cc2f6f21e121c5fffed65b1fc08b71824fa392 /src
parentb6bf50fd81c77498aecc024ac52a82c8322dfd3b (diff)
downloadqtwayland-af4d463cc8f4f404ffe406f77a01fac5b4be49b7.tar.gz
Avoid double deletion of mBuffer
Both WaylandBrcmBuffer and WaylandBuffer were calling wl_buffer_destroy(mBuffer) without the derived class nulling the pointer on deletion Change-Id: I66a553a3d11a1ef90bbfe6ad0fb49f40fe1a0bdb Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp b/src/hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp
index 9842f61c..f2709983 100644
--- a/src/hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp
+++ b/src/hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp
@@ -91,6 +91,7 @@ public:
{
wl_array_release(&m_array);
wl_buffer_destroy(mBuffer);
+ mBuffer = nullptr;
}
QSize size() const { return m_size; }