[rhythmbox] add missing refs on popup menus



commit b65b762176f159a65b4468cf4bc4635de8872573
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Aug 9 13:46:28 2014 +1000

    add missing refs on popup menus

 podcast/rb-podcast-source.c  |    2 ++
 sources/rb-browser-source.c  |    1 +
 sources/rb-playlist-source.c |    1 +
 3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index 73c7c20..d3419b2 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -1365,6 +1365,8 @@ impl_constructed (GObject *object)
        builder = rb_builder_load ("podcast-popups.ui", NULL);
        source->priv->feed_popup = G_MENU_MODEL (gtk_builder_get_object (builder, "podcast-feed-popup"));
        source->priv->episode_popup = G_MENU_MODEL (gtk_builder_get_object (builder, 
"podcast-episode-popup"));
+       g_object_ref (source->priv->feed_popup);
+       g_object_ref (source->priv->episode_popup);
        g_object_unref (builder);
 
        source->priv->default_search = rb_source_search_basic_new (RHYTHMDB_PROP_SEARCH_MATCH, NULL);
diff --git a/sources/rb-browser-source.c b/sources/rb-browser-source.c
index 1898f35..36bc34c 100644
--- a/sources/rb-browser-source.c
+++ b/sources/rb-browser-source.c
@@ -424,6 +424,7 @@ rb_browser_source_constructed (GObject *object)
        source->priv->popup = G_MENU (gtk_builder_get_object (builder, "browser-popup"));
        rb_application_link_shared_menus (RB_APPLICATION (g_application_get_default ()),
                                          source->priv->popup);
+       g_object_ref (source->priv->popup);
        g_object_unref (builder);
 
        g_object_unref (entry_type);
diff --git a/sources/rb-playlist-source.c b/sources/rb-playlist-source.c
index 276a816..3169932 100644
--- a/sources/rb-playlist-source.c
+++ b/sources/rb-playlist-source.c
@@ -316,6 +316,7 @@ rb_playlist_source_constructed (GObject *object)
        builder = rb_builder_load ("playlist-popup.ui", NULL);
        source->priv->popup = G_MENU (gtk_builder_get_object (builder, "playlist-popup"));
        rb_application_link_shared_menus (RB_APPLICATION (g_application_get_default ()), source->priv->popup);
+       g_object_ref (source->priv->popup);
        g_object_unref (builder);
 
        source->priv->entries = g_hash_table_new_full (rb_refstring_hash, rb_refstring_equal,


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