mirror of
https://github.com/textmate/textmate.git
synced 2026-04-06 03:01:29 -04:00
Remove “grammar changed” callback
This would cause a crash if grammar changed on disk for a document which was closed but not disposed.
This commit is contained in:
@@ -874,6 +874,10 @@ namespace document
|
||||
_backup_path = NULL_STR;
|
||||
|
||||
check_modified(-1, -1);
|
||||
|
||||
if(_grammar)
|
||||
_grammar->remove_callback(&_grammar_callback);
|
||||
_grammar.reset();
|
||||
_undo_manager.reset();
|
||||
_buffer.reset();
|
||||
_pristine_buffer = NULL_STR;
|
||||
|
||||
Reference in New Issue
Block a user