libkcddb and missing error string

André Wöbbeking Woebbeking at onlinehome.de
Tue Jul 20 20:23:57 BST 2004


Hi Alexander,

On Tuesday 20 July 2004 21:09, Alexander Neundorf wrote:
> Client::Client(const Config & config) : QObject(),
>     cdInfoLookup(0),
>     cdInfoSubmit(0)
> {
>     d = new Private;
>     d->config = config;   //// <- this line
> }
>
> I didn't find an operator= for the KConfigSkeleton class, so it is
> simply memcpy'ied, and crashes in the dtor when both copies try to
> delete their members.

memcpy() is only used for build in types. For all other types 
operator=() is called for each member.


André




More information about the kde-core-devel mailing list