mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
solid: plug memory leak
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f84a65e854
commit
096ed8b209
1 changed files with 2 additions and 2 deletions
|
@ -184,8 +184,8 @@ QString UDevDevice::description() const
|
|||
* HACK: As Media player is very generic return the device product instead
|
||||
* until we can return the Name.
|
||||
*/
|
||||
const PortableMediaPlayer *player = new PortableMediaPlayer(const_cast<UDevDevice *>(this));
|
||||
if (player->supportedProtocols().contains("mtp")) {
|
||||
const PortableMediaPlayer player(const_cast<UDevDevice *>(this));
|
||||
if (player.supportedProtocols().contains("mtp")) {
|
||||
return product();
|
||||
} else {
|
||||
// TODO: check out special cases like iPod
|
||||
|
|
Loading…
Add table
Reference in a new issue