SpotifySettingsPage: Fix gst reg lookup leak

This commit is contained in:
Jonas Kvinge 2024-09-12 22:55:52 +02:00
parent e9684cd1a1
commit a3eab902ff
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ SpotifySettingsPage::SpotifySettingsPage(SettingsDialog *dialog, QWidget *parent
if (reg) {
GstPluginFeature *spotifyaudiosrc = gst_registry_lookup_feature(reg, "spotifyaudiosrc");
if (spotifyaudiosrc) {
gst_object_unref(spotifyaudiosrc);
ui_->widget_warning->hide();
}
else {