Only if a QObject has a parent Qt automatically deletes all children on
parent deconstruction.

2014-12-16 23:52 GMT+01:00 Vesa <[email protected]>:
>
> On 12/17/2014 12:49 AM, Dave French wrote:
> > I decided to learn how to use Valgrind on code i knew, so decided a
> > good place to start was to analyse my Eq plugin as that is fresh in my
> > mind. Im learning quick :) and can see this to be very useful. Think i
> > may be turning into "Dave the bug hunter" for the next week or so.
> >
> > Its got me thinking about my own code, and I would like to ask a
> question.
> >
> > should I be aiming for zero memory leaks, as one thing I am guilty of,
> > and see all over the code base is code like the following
> >
> > Knob *dial = new Knob();
>
> I'm pretty sure Qt handles disposing of those.
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> LMMS-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lmms-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to