]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash in haiku_message_to_lisp
authorPo Lu <luangruo@yahoo.com>
Wed, 23 Mar 2022 04:01:01 +0000 (04:01 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 23 Mar 2022 04:01:01 +0000 (04:01 +0000)
* src/haikuselect.c (haiku_message_to_lisp): Block input around
`free'.

src/haikuselect.c

index 21407eedf0eeaf3a7f5020426b1150b02458a032..5a90fe37d22c7a55979840feccc36dce8361c7fd 100644 (file)
@@ -239,7 +239,10 @@ haiku_message_to_lisp (void *message)
                memory_full (SIZE_MAX);
 
              t1 = build_string (pbuf);
+
+             block_input ();
              free (pbuf);
+             unblock_input ();
              break;
 
            case 'SHRT':