fix copy/drag abort.

This commit is contained in:
Robin Gareus 2015-01-24 20:40:07 +01:00
parent 22435bb53d
commit e3da18fd2f

View File

@ -1378,7 +1378,10 @@ RegionMoveDrag::aborted (bool movement_occurred)
if (_copy) {
for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) {
list<DraggingView>::const_iterator next = i;
++next;
delete i->view;
i = next;
}
_views.clear ();