Skip to content

Defensive code against use-after-free in zoom tool

Mike Kowalski requested to merge mkov/inkscape:zoom-tool-use-after-free into master

This is a fix for inbox#9992 (closed)

I can reproduce the bug consistently simply by pressing 'z' to activate a zoom tool and then 'esc' to switch back to select tool.

The line causing "use after free" was this: Rubberband::get(_desktop)->stop();, which I had to put in the else branch. That doesn't make any sense, but that's what ultimately worked for me.

Merge request reports