diff options
author | miwi <miwi@FreeBSD.org> | 2007-09-19 19:20:15 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-09-19 19:20:15 +0800 |
commit | 487e694b9a64c41d78769b86de716acc9d47ccf6 (patch) | |
tree | 4e2e31e06f769066203f010d54349a130c90e11e /mail/claws-mail | |
parent | 70d936648a9510e82c717bff6a6ca83ac569b5e6 (diff) | |
download | freebsd-ports-gnome-487e694b9a64c41d78769b86de716acc9d47ccf6.tar.gz freebsd-ports-gnome-487e694b9a64c41d78769b86de716acc9d47ccf6.tar.zst freebsd-ports-gnome-487e694b9a64c41d78769b86de716acc9d47ccf6.zip |
- Fix a Memory leak caused by gtk_container_get_children
- Bump PORTREVISION
Obtained from: claws-mail cvs
Approved by: netchild (maintainer)
Diffstat (limited to 'mail/claws-mail')
-rw-r--r-- | mail/claws-mail/Makefile | 1 | ||||
-rw-r--r-- | mail/claws-mail/files/patch-src_toolbar.c | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/mail/claws-mail/Makefile b/mail/claws-mail/Makefile index faee870875cc..15754a14a47a 100644 --- a/mail/claws-mail/Makefile +++ b/mail/claws-mail/Makefile @@ -7,6 +7,7 @@ PORTNAME= claws-mail PORTVERSION= 3.0.1 +PORTREVISION= 1 CATEGORIES= mail news ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sylpheed-claws diff --git a/mail/claws-mail/files/patch-src_toolbar.c b/mail/claws-mail/files/patch-src_toolbar.c new file mode 100644 index 000000000000..068f5ca68669 --- /dev/null +++ b/mail/claws-mail/files/patch-src_toolbar.c @@ -0,0 +1,31 @@ +diff -u -r1.43.2.82 -r1.43.2.83 +--- src/toolbar.c 2007/08/30 16:11:57 1.43.2.82 ++++ src/toolbar.c 2007/09/18 17:07:51 1.43.2.83 +@@ -1643,8 +1643,10 @@ + GTK_CONTAINER(child)); \ + btn = (GtkWidget *)gchild->data; \ + arr = (GtkWidget *)(gchild->next?gchild->next->data:NULL); \ ++ g_list_free(gchild); \ + gchild = gtk_container_get_children(GTK_CONTAINER(arr)); \ + gtk_widget_set_size_request(GTK_WIDGET(gchild->data), 9, -1); \ ++ g_list_free(gchild); \ + } + + #define MAKE_MENU(entries,path,btn) { \ +@@ -2073,6 +2075,7 @@ + GtkWidget *btn = (GtkWidget *)gchild->data; \ + GtkWidget *arr = (GtkWidget *) \ + (gchild->next?gchild->next->data:NULL); \ ++ g_list_free(gchild); \ + if (GTK_IS_BUTTON(btn)) \ + in_btn1 = GTK_BUTTON(btn)->in_button; \ + if (GTK_IS_BUTTON(arr)) \ +@@ -2095,6 +2098,7 @@ + GtkWidget *btn = (GtkWidget *)gchild->data; \ + GtkWidget *arr = (GtkWidget *) \ + (gchild->next?gchild->next->data:NULL); \ ++ g_list_free(gchild); \ + if (GTK_IS_BUTTON(btn)) \ + GTK_BUTTON(btn)->in_button = in_btn1; \ + if (GTK_IS_BUTTON(arr)) \ + |