Subject: bug#77478: Fixes a crash in the Haiku font driver for daemon mode

From: Eli Zaretskii <[email-masked]>
Date: Sat, 24 May 2025 12:18:41 +0300

> From: Po Lu <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Sun, 18 May 2025 08:47:03 +0800
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> > > This fixes double-free bug in Emacs daemon mode on Haiku. To reproduce:
> >> > > 
> >> > > 1. Start emacs with "emacs --daemon"
> >> > > 2. Create a new frame with "emacsclient -c" and then close it.
> >> > > 3. Create a new frame with "emacsclient -c"
> 
> I think I've fixed this slightly differently.  Please test and ack,
> thanks.

Kyle, could you please test the fix and report back?