[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Very big and ugly memory leaks
From:       benoit.amiaux () laposte ! net (Amiaux Benoit)
Date:       2005-04-04 0:09:05
Message-ID: 425068ED.7050903 () laposte ! net
[Download RAW message or body]

After having read CombineTag code, it seems this class is lacking a 
destructor too. So memory will leak when two types of tags are present. 
I'm not able to test this case though.

So again, adding a proper destructor is the solution:

    ~CombinedTag()
    {
        delete tag1;
        delete tag2;
    }



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic