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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user