[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disappointed by GNUstep

From: Sergei Golovin
Subject: Re: Disappointed by GNUstep
Date: Tue, 08 Feb 2022 08:11:20 +0400
User-agent: GNUMail (Version 1.3.0)

On 2022-02-08 07:16:44 +0400 Sergei Golovin <> wrote:

On 2022-02-08 02:49:26 +0400 Wolfgang Lux <> wrote:

The attached patch changes the -[dealloc] to do the code chunk equivalent to -[setMenu:nil]
avoiding that -[NSPopUpButtonCell synchronizeTitleAndSelectedItem]
and following.

didn't have time to look at your second message earlier.
I like the idea of avoiding the call to setMenu: altogether. That said, there is a little problem with your patch: It lets the menu leak. There
should be a DESTROY(_menu) or RELEASE(_menu) statement after removing
the observer.

_menu is owned by a superclass and released there. See -[NSCell dealloc].

Oh, :-) I was wrong.



Attachment: gtam_segfault_on_quit_bug.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]