~charlesk/appmenu-gtk/lp-788640

« back to all changes in this revision

Viewing changes to src/bridge.c

  • Committer: Ted Gould
  • Date: 2011-01-24 21:19:22 UTC
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: ted@gould.cx-20110124211922-b2upe09xnyle91vo
Make sure to unref the menu item

Show diffs side-by-side

added added

removed removed

Lines of Context:
626
626
 
627
627
  DbusmenuMenuitem * mi = find_menu_bar(toplevel);
628
628
  dbusmenu_server_set_root(context->server, mi);
 
629
  if (mi != NULL) {
 
630
    g_object_unref(G_OBJECT(mi));
 
631
  }
629
632
 
630
633
  register_application_windows (bridge);
631
634
}