diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-09-28 12:16:25 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-09-28 12:16:25 -0400 |
commit | 2d915c45392bbcf6fbe5b9333c239d29432b0991 (patch) | |
tree | 99a4e94da749ed969ac8fbc1e50144c8df0bdb52 | |
parent | e4d9d41159103d38d2b3b34044ede6008fd18624 (diff) | |
parent | b4e4cfad7964bce931df142243e49a4ddce1f4c5 (diff) | |
download | ayatana-indicator-messages-2d915c45392bbcf6fbe5b9333c239d29432b0991.tar.gz ayatana-indicator-messages-2d915c45392bbcf6fbe5b9333c239d29432b0991.tar.bz2 ayatana-indicator-messages-2d915c45392bbcf6fbe5b9333c239d29432b0991.zip |
* New upstream release.
* Fix memory leak (LP: #690668)
* Drop debian/patches/lp_690668.patch: Merged upstream
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 12 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | debian/patches/lp_690668.patch | 44 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | src/indicator-messages.c | 12 |
8 files changed, 27 insertions, 55 deletions
@@ -1,6 +1,7 @@ # Generated by Makefile. Do not edit. Andrea Cimitan + Chow Loong Jin Chris Coulson cody David Barth @@ -1,5 +1,17 @@ # Generated by Makefile. Do not edit. +2011-09-28 Ted Gould <ted@gould.cx> + + 0.5.0 + +2011-09-21 Ted Gould <ted@gould.cx> + + Memory leak on pixbufs + +2011-01-21 Chow Loong Jin <hyperair@ubuntu.com> + + Memory leaks fixes + 2011-08-25 Ted Gould <ted@gould.cx> 0.4.95 @@ -2758,7 +2758,7 @@ fi # Define the identity of the package. PACKAGE=indicator-messages - VERSION=0.4.95 + VERSION=0.5.0 cat >>confdefs.h <<_ACEOF diff --git a/configure.ac b/configure.ac index de4f91b..67445d5 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_INIT(src/indicator-messages.c) AC_PREREQ(2.53) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(indicator-messages, 0.4.95) +AM_INIT_AUTOMAKE(indicator-messages, 0.5.0) AM_MAINTAINER_MODE diff --git a/debian/changelog b/debian/changelog index 9e9fd6b..0f2b356 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +indicator-messages (0.5.0-0ubuntu1~ppa1) oneiric; urgency=low + + * New upstream release. + * Fix memory leak (LP: #690668) + * Drop debian/patches/lp_690668.patch: Merged upstream + + -- Ted Gould <ted@ubuntu.com> Wed, 28 Sep 2011 10:39:26 -0500 + indicator-messages (0.4.95-0ubuntu1) oneiric; urgency=low * New upstream release. diff --git a/debian/patches/lp_690668.patch b/debian/patches/lp_690668.patch deleted file mode 100644 index d7f2ec2..0000000 --- a/debian/patches/lp_690668.patch +++ /dev/null @@ -1,44 +0,0 @@ -=== modified file 'src/indicator-messages.c' ---- old/src/indicator-messages.c 2011-01-14 19:10:10 +0000 -+++ new/src/indicator-messages.c 2011-01-21 20:08:53 +0000 -@@ -571,6 +571,7 @@ - width, - height, - GDK_INTERP_BILINEAR); -+ g_object_unref(pixbuf); - } else { - g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); - resized_pixbuf = pixbuf; -@@ -578,10 +579,7 @@ - - gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf); - -- /* The other pixbuf should be free'd by the dbusmenu. */ -- if (resized_pixbuf != pixbuf) { -- g_object_unref(resized_pixbuf); -- } -+ g_object_unref(resized_pixbuf); - - gtk_widget_show(mi_data->icon); - } else { -@@ -633,6 +631,7 @@ - width, - height, - GDK_INTERP_BILINEAR); -+ g_object_unref(pixbuf); - } else { - g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); - resized_pixbuf = pixbuf; -@@ -640,10 +639,7 @@ - - gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf); - -- /* The other pixbuf should be free'd by the dbusmenu. */ -- if (resized_pixbuf != pixbuf) { -- g_object_unref(resized_pixbuf); -- } -+ g_object_unref(resized_pixbuf); - } - gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5); - gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, 0); - diff --git a/debian/patches/series b/debian/patches/series index 6badc75..e69de29 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +0,0 @@ -lp_690668.patch diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 2476d4d..1b96464 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -653,6 +653,7 @@ indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant * value, width, height, GDK_INTERP_BILINEAR); + g_object_unref(pixbuf); } else { g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); resized_pixbuf = pixbuf; @@ -660,10 +661,7 @@ indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant * value, gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf); - /* The other pixbuf should be free'd by the dbusmenu. */ - if (resized_pixbuf != pixbuf) { - g_object_unref(resized_pixbuf); - } + g_object_unref(resized_pixbuf); gtk_widget_show(mi_data->icon); } else { @@ -715,6 +713,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm width, height, GDK_INTERP_BILINEAR); + g_object_unref(pixbuf); } else { g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); resized_pixbuf = pixbuf; @@ -722,10 +721,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf); - /* The other pixbuf should be free'd by the dbusmenu. */ - if (resized_pixbuf != pixbuf) { - g_object_unref(resized_pixbuf); - } + g_object_unref(resized_pixbuf); } gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, 0); |