diff options
| author | Sven Baars <svenb.linux@gmail.com> | 2012-02-07 15:58:28 +0100 |
|---|---|---|
| committer | Sven Baars <svenb.linux@gmail.com> | 2012-02-07 15:58:28 +0100 |
| commit | 9a208b7fe3d46f729812ae7d972570e1ec01f829 (patch) | |
| tree | 0ad26c549d1881dc918567f7640e1600ecffa5ea | |
| parent | dd7be1c7c4c9f1f954831e784bb95df94fd0bb97 (diff) | |
Don't access an uninitialized variable (Valgrind)
(bzr r1910.2.1)
| -rw-r--r-- | plugins/unityshell/src/Launcher.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/unityshell/src/Launcher.cpp b/plugins/unityshell/src/Launcher.cpp index 70b79f1ae..97b9c7bbc 100644 --- a/plugins/unityshell/src/Launcher.cpp +++ b/plugins/unityshell/src/Launcher.cpp @@ -224,6 +224,7 @@ Launcher::Launcher(nux::BaseWindow* parent, _hidden = false; _render_drag_window = false; _drag_edge_touching = false; + _steal_drag = false; _last_button_press = 0; _selection_atom = 0; _drag_out_id = 0; @@ -2643,10 +2644,7 @@ void Launcher::DndHoveredIconReset() } if (!_steal_drag && _dnd_hovered_icon) - { _dnd_hovered_icon->SendDndLeave(); - _dnd_hovered_icon = nullptr; - } _steal_drag = false; _dnd_hovered_icon = nullptr; |
