Public bug reported:

Please review applet_menu_item_add_complex_separator_helper (after the
indicator patch has been applied).

The first line is

        GtkWidget *menu_item = gtk_image_menu_item_new ();

And then if the indicator is enabled, the next line executed is

        menu_item = gtk_separator_menu_item_new ();

That is an obvious memory leak. Here is an associated valgrind log
entry:

==10301== 6,656 bytes in 32 blocks are definitely lost in loss record 9,248 of 
9,326
==10301==    at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==10301==    by 0x8F62A62: g_malloc (gmem.c:164)
==10301==    by 0x8F79666: g_slice_alloc (gslice.c:842)
==10301==    by 0x8F79915: g_slice_alloc0 (gslice.c:854)
==10301==    by 0x88ED398: g_type_create_instance (gtype.c:1869)
==10301==    by 0x88CB76B: g_object_constructor (gobject.c:1615)
==10301==    by 0x88CE388: g_object_newv (gobject.c:1479)
==10301==    by 0x88CF63B: g_object_new (gobject.c:1308)
==10301==    by 0x41A03C: applet_menu_item_add_complex_separator_helper 
(applet.c:440)
==10301==    by 0x42B1D8: wireless_add_menu_item (applet-device-wifi.c:960)
==10301==    by 0x41A97E: indicator_update_menu (applet.c:1456)
==10301==    by 0x8F5BBCC: g_main_context_dispatch (gmain.c:2440)
==10301==    by 0x8F5C3A7: g_main_context_iterate.clone.6 (gmain.c:3091)
==10301==    by 0x8F5C9F1: g_main_loop_run (gmain.c:3299)
==10301==    by 0x416D77: main (main.c:101)

** Affects: network-manager-applet (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/784711

Title:
  memory leak in applet_menu_item_add_complex_separator_helper

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to