[rhythmbox] podcast: don't double unref channels



commit 90f41c8ac749a20da2d7d8cc3718c78f907a5aee
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Jan 28 21:35:23 2021 +1000

    podcast: don't double unref channels
    
    Closes: #1846 again

 podcast/rb-podcast-add-dialog.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/podcast/rb-podcast-add-dialog.c b/podcast/rb-podcast-add-dialog.c
index c46807410..edb6bd817 100644
--- a/podcast/rb-podcast-add-dialog.c
+++ b/podcast/rb-podcast-add-dialog.c
@@ -354,9 +354,7 @@ parse_cb (RBPodcastChannel *channel, GError *error, gpointer user_data)
                }
 
                /* if the row is selected, create entries for the channel contents */
-               if (found == FALSE) {
-                       rb_podcast_parse_channel_unref (data->channel);
-               } else if (data->dialog->priv->have_selection) {
+               if (found && data->dialog->priv->have_selection) {
                        GtkTreePath *a;
                        GtkTreePath *b;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]