Re: Memory leak of RefPtr?



Rose Cumming wrote:
> The question is, will this
> viewBuffer_ = (*buffer)->scale_simple(100,100,Gdk::INTERP_BILINEAR);
> cause memory leak?

No.

> Or there're "better" (proper) way to unref the smart pointer or something?

Not really.  You can use constuctor initialization, though.

Paul



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