mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix memory leak in Cuesheet destructor
This commit is contained in:
@@ -763,13 +763,15 @@ namespace FLAC {
|
||||
|
||||
void CueSheet::Track::operator=(const Track &track)
|
||||
{
|
||||
if(0 != object_)
|
||||
free(object_);
|
||||
object_ = ::FLAC__metadata_object_cuesheet_track_clone(track.object_);
|
||||
}
|
||||
|
||||
CueSheet::Track::~Track()
|
||||
{
|
||||
if(0 != object_)
|
||||
delete object_;
|
||||
free(object_);
|
||||
}
|
||||
|
||||
bool CueSheet::Track::is_valid() const
|
||||
|
||||
Reference in New Issue
Block a user