Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Destructors in Theme Editor: virtual or non virtual?

Re: Destructors in Theme Editor: virtual or non virtual?

From: Al Le <Al.Le_at_gmx.de>
Date: Thu, 17 Jun 2010 13:05:43 +0200

> You are perfectly right. When deriving from a class, the destructor should
> always be virtual in order to call the destructor of the base class.

Hrm... I'd understand it the other way around: it should be virtual so that the correct (of the derived class) destructor is called when the object is destroyed by the framework (probably a call via a pointer to a base class).

But the net effect is the same ! :-)

-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
Received on 2010-06-17

Page was last modified "Jan 10 2012" The Rockbox Crew
aaa