SpotifySettingsPage: Fix gst reg lookup leak
This commit is contained in:
parent
e9684cd1a1
commit
a3eab902ff
|
@ -69,6 +69,7 @@ SpotifySettingsPage::SpotifySettingsPage(SettingsDialog *dialog, QWidget *parent
|
||||||
if (reg) {
|
if (reg) {
|
||||||
GstPluginFeature *spotifyaudiosrc = gst_registry_lookup_feature(reg, "spotifyaudiosrc");
|
GstPluginFeature *spotifyaudiosrc = gst_registry_lookup_feature(reg, "spotifyaudiosrc");
|
||||||
if (spotifyaudiosrc) {
|
if (spotifyaudiosrc) {
|
||||||
|
gst_object_unref(spotifyaudiosrc);
|
||||||
ui_->widget_warning->hide();
|
ui_->widget_warning->hide();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue