Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt

This commit is contained in:
Andrew Comminos 2015-07-28 06:28:00 -04:00
parent 69e26539a4
commit 482e0ca788
2 changed files with 3 additions and 0 deletions

View File

@ -546,6 +546,7 @@ STUB(gtk_tree_view_column_get_button)
STUB(gtk_widget_get_preferred_size)
STUB(gtk_widget_get_style_context)
STUB(gtk_widget_path_append_type)
STUB(gtk_widget_path_free)
STUB(gtk_widget_path_new)
STUB(gtk_widget_set_visual)
STUB(gtk_app_chooser_dialog_new_for_content_type)

View File

@ -1187,6 +1187,8 @@ nsLookAndFeel::Init()
style = gtk_widget_get_style_context(frame);
gtk_style_context_get_border_color(style, GTK_STATE_FLAG_NORMAL, &color);
sFrameInnerDarkBorder = sFrameOuterLightBorder = GDK_RGBA_TO_NS_RGBA(color);
gtk_widget_path_free(path);
#endif
// Some themes have a unified menu bar, and support window dragging on it
gboolean supports_menubar_drag = FALSE;