memory leak in applet_menu_item_add_complex_separator_helper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-applet (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre |
Bug Description
Please review applet_
The first line is
GtkWidget *menu_item = gtk_image_
And then if the indicator is enabled, the next line executed is
menu_item = gtk_separator_
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_
==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_
==10301== by 0x88CB76B: g_object_
==10301== by 0x88CE388: g_object_newv (gobject.c:1479)
==10301== by 0x88CF63B: g_object_new (gobject.c:1308)
==10301== by 0x41A03C: applet_
==10301== by 0x42B1D8: wireless_
==10301== by 0x41A97E: indicator_
==10301== by 0x8F5BBCC: g_main_
==10301== by 0x8F5C3A7: g_main_
==10301== by 0x8F5C9F1: g_main_loop_run (gmain.c:3299)
==10301== by 0x416D77: main (main.c:101)
Related branches
Changed in network-manager-applet (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
status: | Confirmed → In Progress |
Setting to Fix Committed since it's now in the packaging branch for nm-applet: lp:~network-manager/network-manager-applet/ubuntu.head