~charlesk/appmenu-gtk/lp-788640

« back to all changes in this revision

Viewing changes to src/bridge.c

  • Committer: Charles Kerr
  • Date: 2012-03-06 21:33:44 UTC
  • mfrom: (146.1.1 appmenu-gtk)
  • Revision ID: charles.kerr@canonical.com-20120306213344-g1ycdv1xxl18b7fd
apply a patch from Stian Skjelstad to fix the memory leak he reported in bug #830260

Show diffs side-by-side

added added

removed removed

Lines of Context:
825
825
      g_object_get (widget, "attach-widget", &attach, NULL);
826
826
 
827
827
      rebuild (bridge, attach);
 
828
 
 
829
      g_clear_object (&attach);
828
830
    }
829
831
}
830
832
 
885
887
        {
886
888
          DbusmenuMenuitem *mi = dbusmenu_gtk_parse_get_cached_item (attach);
887
889
 
 
890
          g_object_unref (attach);
 
891
 
888
892
          if (mi != NULL)
889
893
            {
890
894
              DbusmenuMenuitem *child_dmi = dbusmenu_gtk_parse_menu_structure (child);