fix memory leak generated by setIcon

when setIcon is called this.dragging is replaced without be disabled before, so hooks remains active.
Merge pull request #2811 from jfgodoy/patch-1

fix memory leak generated by setIcon