diff options
author | Andrew Knight <andrew.knight@digia.com> | 2013-12-13 10:22:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-16 11:36:15 +0100 |
commit | 3acb072cf626a3d5358f2189de66a4f86324d333 (patch) | |
tree | 39e2b07c79b24996c237c24c9199d1aafd47ce68 /src/compositor/wayland_wrapper/qwldatadevicemanager.cpp | |
parent | 311a4a4eb749724e5d8c070f144442b6d552cba9 (diff) |
QtCompositor: Handle destroyed DataSource objects in DataDevice
Fast selections can create dangling pointers to DataSource objects, so
make sure the DataDevice is aware of DataSource destruction.
Change-Id: Ibcb7eec3b3403bd6ee53b6f09815d78148f65b4d
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/qwldatadevicemanager.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/qwldatadevicemanager.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp index 0b208d546..7730e0347 100644 --- a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp +++ b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp @@ -98,7 +98,6 @@ void DataDeviceManager::setCurrentSelectionSource(DataSource *source) void DataDeviceManager::sourceDestroyed(DataSource *source) { - Q_UNUSED(source); if (m_current_selection_source == source) finishReadFromClient(); } |