You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTPSession can be copied with the default copy constructor, which however does the wrong thing. It copies the pointer to RTPRandom instead of cloning the pointed-to object. When one of the copies is destroyed, it deletes the RTPRandom, which will result in access violation or double delete, depending on how the other copy is used.
Probably RTPSession is not meant to be copied, so I suggest you disable the copy constructor and copy assignment operator as described here.
The text was updated successfully, but these errors were encountered:
RTPSession can be copied with the default copy constructor, which however does the wrong thing. It copies the pointer to RTPRandom instead of cloning the pointed-to object. When one of the copies is destroyed, it deletes the RTPRandom, which will result in access violation or double delete, depending on how the other copy is used.
Probably RTPSession is not meant to be copied, so I suggest you disable the copy constructor and copy assignment operator as described here.
The text was updated successfully, but these errors were encountered: