[rhythmbox] display-page-menu: ref page returned by rb_display_page_menu_get_page



commit 4d088ae833f0b724a10960a3bf53b0208cce9d3a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Aug 20 20:19:55 2014 +1000

    display-page-menu: ref page returned by rb_display_page_menu_get_page
    
    this is what it was always supposed to do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735083

 sources/rb-display-page-menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sources/rb-display-page-menu.c b/sources/rb-display-page-menu.c
index ed4b5b6..051b1d9 100644
--- a/sources/rb-display-page-menu.c
+++ b/sources/rb-display-page-menu.c
@@ -562,5 +562,5 @@ rb_display_page_menu_get_page (RBDisplayPageModel *model, GVariant *parameters)
                return NULL;
        }
 
-       return RB_DISPLAY_PAGE (ptr);
+       return g_object_ref (RB_DISPLAY_PAGE (ptr));
 }


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