mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-23 18:40:02 +00:00
Fixed a Track memory leak.
This commit is contained in:
parent
ab8517fd89
commit
06192f53a2
@ -46,7 +46,7 @@ class SdkWrapper : public Track {
|
||||
public:
|
||||
SdkWrapper(TrackPtr track) {
|
||||
this->track = track;
|
||||
this->count = 0;
|
||||
this->count = 1;
|
||||
}
|
||||
|
||||
virtual ~SdkWrapper() {
|
||||
|
@ -759,9 +759,6 @@ void WebSocketServer::RespondWithPlayQueueTracks(connection_hdl connection, json
|
||||
else {
|
||||
bool idsOnly = request[message::options].value(key::ids_only, false);
|
||||
|
||||
static auto releaseDeleter = [](ITrack* track) { track->Release(); };
|
||||
static auto nullDeleter = [](ITrack* track) { };
|
||||
|
||||
/* now add the tracks to the output. they will be Release()'d automatically
|
||||
as soon as this scope ends. */
|
||||
json data = json::array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user