diff -u unity-3.8.12/debian/changelog unity-3.8.12/debian/changelog --- unity-3.8.12/debian/changelog +++ unity-3.8.12/debian/changelog @@ -1,3 +1,9 @@ +unity (3.8.12-0ubuntu2~mh2) natty; urgency=low + + * Fix pixbuf leaks. + + -- Michael Hofmann Tue, 24 May 2011 17:37:22 +0200 + unity (3.8.12-0ubuntu1) natty-proposed; urgency=low * New upstream release. only in patch2: unchanged: --- unity-3.8.12.orig/src/PanelIndicatorObjectEntryView.cpp +++ unity-3.8.12/src/PanelIndicatorObjectEntryView.cpp @@ -242,14 +242,12 @@ x = _padding; y = 0; - if (_proxy->GetPixbuf () && _proxy->icon_visible) + if (pixbuf && _proxy->icon_visible) { gdk_cairo_set_source_pixbuf (cr, pixbuf, x, (int)((height - gdk_pixbuf_get_height (pixbuf))/2)); cairo_paint_with_alpha (cr, _proxy->icon_sensitive ? 1.0 : 0.5); x += icon_width + SPACING; - - g_object_unref (pixbuf); } if (label && _proxy->label_visible) @@ -311,6 +309,8 @@ refreshed.emit (this); if (label) g_free (label); + if (pixbuf) + g_object_unref (pixbuf); } static void