Re: possible memory leak in Server Status window

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: possible memory leak in Server Status window
Дата
Msg-id AANLkTikQ8s_9kmRM+MRonpMaZrJ+7gxEyH_j60kdHWbQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: possible memory leak in Server Status window  (Dave Page <dpage@pgadmin.org>)
Ответы Re: possible memory leak in Server Status window  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-support
On 12 February 2011 14:22, Dave Page <dpage@pgadmin.org> wrote:
> Note the lack of a delete - that's the point here; it's not needed
> because as soon as the smart pointer goes out of scope, it's
> destructor will delete foo. That means you don't have to remember to
> include the delete in each of the many exit points of the code.
>
> See also http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization

"Resource Acquisition is Initialization" is a terrible name. Some
people call it "scope bound resource management", which makes a lot
more sense, but isn't as widely known.


-- 
Regards,
Peter Geoghegan


В списке pgadmin-support по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Enpty field, grid editor, NOT NULL
Следующее
От: Dave Page
Дата:
Сообщение: Re: possible memory leak in Server Status window