mirror of
https://github.com/thestk/stk
synced 2026-02-07 17:56:16 +00:00
Memory leak fix in StkFrames::operator= function
This commit is contained in:
@@ -281,6 +281,7 @@ StkFrames :: StkFrames( const StkFrames& f )
|
|||||||
|
|
||||||
StkFrames& StkFrames :: operator= ( const StkFrames& f )
|
StkFrames& StkFrames :: operator= ( const StkFrames& f )
|
||||||
{
|
{
|
||||||
|
if ( data_ ) free( data_ );
|
||||||
data_ = 0;
|
data_ = 0;
|
||||||
size_ = 0;
|
size_ = 0;
|
||||||
bufferSize_ = 0;
|
bufferSize_ = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user