1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

[playdar] Correct delete scopedpointer content

This commit is contained in:
Uwe L. Korn
2014-06-27 03:10:46 +01:00
parent 41faf4eee7
commit 7ace0ce70c

View File

@@ -51,9 +51,9 @@ PlaydarApi::start()
if ( d->session.isNull() || d->connector.isNull() ) if ( d->session.isNull() || d->connector.isNull() )
{ {
if ( !d->session.isNull() ) if ( !d->session.isNull() )
delete d->session.data(); d->session.reset();
if ( !d->connector.isNull() ) if ( !d->connector.isNull() )
delete d->connector.data(); d->connector.reset();
tLog() << "Failed to start HTTPd, could not create object"; tLog() << "Failed to start HTTPd, could not create object";
return; return;
} }