Fix one memory leak + add note to show() calls as they will delete the dialog
Fix #11456 (canvas not refreshed anymore after adding a new feature)

Resorted to a "minimalist" fix - other solutions would potentially break
even more stuff. The handling of non-modal dialogs for add/edit feature
attributes + handling of isModified() should be addressed at some point.