[Top][All Lists]

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

Re: Question about memory management

From: Maxthon Chan
Subject: Re: Question about memory management
Date: Tue, 04 Jun 2013 08:14:04 +0800

Can you compile it with -fobjc-arc and check again? Probably with ARC you can 
have some ideas.

在 2013-6-4,上午7:33,Germán Arias <address@hidden> 写道:

> For autocomplete I have a class GSAutocompleteWIndow. The
> method -complete: (in NSTextVIew) do something like:
> GSAutocompleteWindow *window = [GSAutocompleteWindow defaultWindow];
> [window displayForTextView: self];
> I think I should release this window at some point. Maybe in
> -dealloc or with a notification when app will close. But looking
> at code in NSCoimboBoxCell.m, the GSComboWindow is not
> released at some point. So, is this a memory leak? Or I don't
> should worry about this. If I add a NSLog() in dealloc, this is
> never called. So, I think this is a memory leak.
> Thanks.
> Germán.
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

reply via email to

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