TrashLauncherIcon::UpdateTrashIconCb is leaking

Bug #806984 reported by Andrea Azzarone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Undecided
Andrea Azzarone
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Return value of g_icon_to_string should be freed using g_free().

Valagrind log:
==29493== 16 bytes in 1 blocks are definitely lost in loss record 3,608 of 9,904
==29493== at 0x4026876: malloc (vg_replace_malloc.c:236)
==29493== by 0x4E11E31: g_malloc (in /lib/i386-linux-gnu/libglib-2.0.so.0.2908.0)
==29493== by 0x4E29C8A: g_strdup (in /lib/i386-linux-gnu/libglib-2.0.so.0.2908.0)
==29493== by 0x4BCEC45: g_icon_to_string (in /usr/lib/i386-linux-gnu/libgio-2.0.so.0.2908.0)
==29493== by 0x93DC382: TrashLauncherIcon::UpdateTrashIconCb(_GObject*, _GAsyncResult*, void*) (in /home/andyrock/.compiz-1/plugins/libunityshell.so)
==29493== by 0x4BE50A1: g_simple_async_result_complete (in /usr/lib/i386-linux-gnu/libgio-2.0.so.0.2908.0)
==29493== by 0x59651C9: ??? (in /usr/lib/gio/modules/libgvfsdbus.so)
==29493== by 0x595B282: ??? (in /usr/lib/gio/modules/libgvfsdbus.so)
==29493== by 0x5957C68: ??? (in /usr/lib/gio/modules/libgvfsdbus.so)
==29493== by 0x5963902: ??? (in /usr/lib/gio/modules/libgvfsdbus.so)
==29493== by 0x593C4E7: ??? (in /usr/lib/gvfs/libgvfscommon.so)
==29493== by 0x590A990: ??? (in /lib/i386-linux-gnu/libdbus-1.so.3.5.5)
==29493== by 0x58F58A6: ??? (in /lib/i386-linux-gnu/libdbus-1.so.3.5.5)
==29493== by 0x58F9146: dbus_connection_dispatch (in /lib/i386-linux-gnu/libdbus-1.so.3.5.5)
==29493== by 0x593AE6C: ??? (in /usr/lib/gvfs/libgvfscommon.so)
==29493== by 0x4E0B0CE: g_main_context_dispatch (in /lib/i386-linux-gnu/libglib-2.0.so.0.2908.0)
==29493== by 0x4E0B7FF: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.2908.0)
==29493== by 0x4E0BE0A: g_main_loop_run (in /lib/i386-linux-gnu/libglib-2.0.so.0.2908.0)
==29493== by 0x4684372: Glib::MainLoop::run() (in /usr/lib/libglibmm-2.4.so.1.3.0)
==29493== by 0xBE8FA0EF: ???

Related branches

Andrea Azzarone (azzar1)
Changed in unity:
assignee: nobody → Andrea Azzarone (andyrock)
Andrea Azzarone (azzar1)
Changed in unity:
status: New → In Progress
Changed in unity (Ubuntu):
status: New → In Progress
Mirco Müller (macslow)
Changed in unity:
status: In Progress → Fix Committed
Omer Akram (om26er)
Changed in unity (Ubuntu):
status: In Progress → Fix Committed
Gord Allott (gordallott)
Changed in unity:
milestone: none → 4.4.0
Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 4.4.0-0ubuntu1

---------------
unity (4.4.0-0ubuntu1) oneiric; urgency=low

  * New upstream release.
    - moving a launcher icon around generates lots of disk write activity
      (LP: #733425)
    - compiz crashed with SIGSEGV in sigc::signal_base::impl() (LP: #762801)
    - Drag and drop a USB key into the trash should eject the USB key
      (LP: #764905)
    - unity window decorator needs to support different metacity frame types
      (LP: #795048)
    - Don't switch title to menu when hovering window buttons (LP: #691808)
    - spacing between indicators should be 5 pixels (LP: #734010)
    - Dash: highlight box is mis-aligned with smaller icon (LP: #761465)
    - Merge libindicator scroll signals (LP: #804618)
    - unity: Dead code in Launcher.cpp: "mask | (Button1Mask & Button2Mask &
      Button3Mask)" (LP: #805327)
    - TrashLauncherIcon::UpdateTrashIconCb is leaking (LP: #806984)
    - Title fade effect no longer works (LP: #809907)
    - Accessibility support not initialized on Oneiric (LP: #810033)
  * debian/control:
    - build-dep on libnotify-dev
    - bump libnux-1.0-dev dep for ABI break
  * debian/rules:
    - bump libunity-core-4.0-4 shlib for ABI break
 -- Didier Roche <email address hidden> Thu, 21 Jul 2011 18:41:15 +0200

Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.