Please sign in to comment.
ns-do-applescript: protect source code string from garbage collection
As an attempt to fix the crash in ns_do_applescript (TTermEntry::NextSubTerm). The reasoning here is that the NSString used to construct the AppleScript object is sufficiently protected from Cocoa's/ObjC GC. So, perhaps the NS run loop called up in ns-do-applescript causes Emacs/Lisp to be executed via some callbacks, and its GC. (This may be a bug in itself.)
- Loading branch information...