mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 12:20:45 +02:00
Delete NetworkReply when async request is done in JSResolverHelper.
This commit is contained in:
@@ -934,6 +934,8 @@ JSResolverHelper::nativeAsyncRequest( const int requestId, const QString& url,
|
|||||||
void
|
void
|
||||||
JSResolverHelper::nativeAsyncRequestDone( int requestId, NetworkReply* reply )
|
JSResolverHelper::nativeAsyncRequestDone( int requestId, NetworkReply* reply )
|
||||||
{
|
{
|
||||||
|
reply->deleteLater();
|
||||||
|
|
||||||
QVariantMap map;
|
QVariantMap map;
|
||||||
map["response"] = QString::fromUtf8( reply->reply()->readAll() );
|
map["response"] = QString::fromUtf8( reply->reply()->readAll() );
|
||||||
map["responseText"] = map["response"];
|
map["responseText"] = map["response"];
|
||||||
|
Reference in New Issue
Block a user