diff options
author | Ted Gould <ted@gould.cx> | 2011-09-28 10:36:04 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-09-28 10:36:04 -0500 |
commit | 84a1d59e2a031e072721e976974443ad37ff4c64 (patch) | |
tree | dc238cf8001e56a7f7d19d79167e04c575ee1dfd | |
parent | ae8f3199a8f3c9d8ff1168465b136c579fac7385 (diff) | |
parent | de9314480fa9df8b5c7ab30f0e013205fc46347c (diff) | |
download | ayatana-indicator-messages-84a1d59e2a031e072721e976974443ad37ff4c64.tar.gz ayatana-indicator-messages-84a1d59e2a031e072721e976974443ad37ff4c64.tar.bz2 ayatana-indicator-messages-84a1d59e2a031e072721e976974443ad37ff4c64.zip |
Import upstream version 0.5.0
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 12 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/indicator-messages.c | 12 |
5 files changed, 19 insertions, 10 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/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); |