Fix JSObject leak in workspace.js

https://bugzilla.gnome.org/show_bug.cgi?id=612318
This commit is contained in:
Maxim Ermilov
2010-03-18 01:23:32 +03:00
parent 9a2d883cf5
commit 46bce04788
2 changed files with 15 additions and 2 deletions

View File

@ -37,6 +37,10 @@ _Draggable.prototype = {
if (!manualMode)
this.actor.connect('button-press-event',
Lang.bind(this, this._onButtonPress));
this.actor.connect('destroy', Lang.bind(this, function() {
this.disconnectAll();
}));
this._onEventId = null;
this._buttonDown = false; // The mouse button has been pressed and has not yet been released.