2007-09-18 [colin] 3.0.1cvs4
[claws.git] / src / toolbar.c
index a80c8945eedb2339127bf32dad678b4b65333f56..7e575c1ab1d565d5552a66141bede6a4e5a1bf51 100644 (file)
@@ -1643,8 +1643,10 @@ static void toolbar_buttons_cb(GtkWidget   *widget,
                        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 @@ void toolbar_update(ToolbarType type, gpointer data)
                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 @@ void toolbar_update(ToolbarType type, gpointer data)
                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))                         \