diff --git a/atom/browser/ui/views/menu_bar.cc b/atom/browser/ui/views/menu_bar.cc index 58b451ad4785..bf9801a14577 100644 --- a/atom/browser/ui/views/menu_bar.cc +++ b/atom/browser/ui/views/menu_bar.cc @@ -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