Move itdb_device_free
This commit is contained in:
parent
e373a17cd3
commit
a9193f9b76
|
@ -244,8 +244,6 @@ QStringList DeviceLister::GuessIconForPath(const QString &path) {
|
|||
QString colour = GetIpodColour(info->ipod_model);
|
||||
QString model = GetIpodModel(info->ipod_model);
|
||||
|
||||
itdb_device_free(device);
|
||||
|
||||
if (!colour.isEmpty()) {
|
||||
QString colour_icon = "multimedia-player-ipod-%1-%2";
|
||||
ret << colour_icon.arg(model, colour);
|
||||
|
@ -262,6 +260,8 @@ QStringList DeviceLister::GuessIconForPath(const QString &path) {
|
|||
|
||||
}
|
||||
|
||||
itdb_device_free(device);
|
||||
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(path)
|
||||
|
|
Loading…
Reference in New Issue