- Fix a Memory leak caused by gtk_container_get_children
- Bump PORTREVISION Obtained from: claws-mail cvs Approved by: netchild (maintainer)
This commit is contained in:
parent
d759951ecc
commit
0f4e951427
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199748
2 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
|
31
mail/claws-mail/files/patch-src_toolbar.c
Normal file
31
mail/claws-mail/files/patch-src_toolbar.c
Normal file
|
@ -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)) \
|
||||
|
Loading…
Reference in a new issue