Skip to content

SEGFAULT: find dialog uses deleted diagram

John Robertson requested to merge ergohack/dia:find-dialog-segfault into master

The find dialog can be caught using a deleted diagram object. This fix destroys the dialog after use rather than hiding it. When the diagram changes, the hidden find dialog does not update to the new or replacement diagram.

Steps to duplicate:

  1. Open a diagram.
  2. Ctrl+F or Menu Search to open the find dialog.
  3. Search for something in the diagram.
  4. Close the find dialog.
  5. Close the diagram.
  6. Open a diagram.
  7. Open the find dialog.
  8. Search for something in the diagram.
  9. 'Find' will most often SEGFAULT.

Merge request reports

Loading