Move itdb_device_free

This commit is contained in:
Jonas Kvinge 2020-09-02 20:03:22 +02:00
parent e373a17cd3
commit a9193f9b76
1 changed files with 2 additions and 2 deletions

View File

@ -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)