fix floating reference glib warning (#11948)

use gtk_widget_destroy() rather than g_object_unref() on the floating temporary menubar widget that we use to calculate colors
This commit is contained in:
Charles Kerr 2018-02-19 00:12:54 -06:00 committed by GitHub
parent 55d4d74624
commit 56859531cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ void GetMenuBarColor(SkColor* enabled,
*highlight = GetStyleContextFgColor(sc, GTK_STATE_FLAG_SELECTED);
*hover = GetStyleContextFgColor(sc, GTK_STATE_FLAG_PRELIGHT);
*background = GetStyleContextBgColor(sc, GTK_STATE_FLAG_NORMAL);
g_object_unref(G_OBJECT(menu_bar));
gtk_widget_destroy(GTK_WIDGET(menu_bar));
}
#endif // USE_X11