mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
Fixed memory leak of FrameFactory singleton.
This commit is contained in:
parent
4496efe33b
commit
c4163a26e8
@ -73,9 +73,8 @@ FrameFactory *FrameFactory::factory = 0;
|
||||
|
||||
FrameFactory *FrameFactory::instance()
|
||||
{
|
||||
if(!factory)
|
||||
factory = new FrameFactory;
|
||||
return factory;
|
||||
static FrameFactory factory;
|
||||
return &factory;
|
||||
}
|
||||
|
||||
Frame *FrameFactory::createFrame(const ByteVector &data, bool synchSafeInts) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user