diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-02-19 11:16:52 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2013-02-21 11:39:39 +0100 |
commit | beeb2bd0018c6196ed31a30e80f95ce3cb74ff7d (patch) | |
tree | 48c70f9de1f06b231f17b0c31e07220ddaaaaf8e /src | |
parent | 5cb159395eccb1d96fb73a78e499eef30aacb46d (diff) | |
download | qtwayland-beeb2bd0018c6196ed31a30e80f95ce3cb74ff7d.tar.gz |
Delete the margins image in ~QWaylandShmBuffer()
This missing delete was causing a quite important memory leak when resizing
shm windows.
Change-Id: I5bd84d12cdb842c62284df712b3939afe47ff10b
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp b/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp index 8300d9c9..decf34a7 100644 --- a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp +++ b/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp @@ -97,6 +97,7 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay *display, QWaylandShmBuffer::~QWaylandShmBuffer(void) { + delete mMarginsImage; munmap((void *) mImage.constBits(), mImage.byteCount()); wl_buffer_destroy(mBuffer); wl_shm_pool_destroy(mShmPool); |