diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-24 06:38:10 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-24 06:38:10 +0000 |
commit | 99c745455b059217fb78f111620b27b0f1b7870b (patch) | |
tree | 80e5689d4e9215e468d8a13b79b85f15f97651db | |
parent | c36140823bb2b5a3c7013970748a8cef832e2ce3 (diff) |
summaryview.c: removed alloca().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2910 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/summaryview.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2011-06-24 + + * src/summaryview.c: summary_colorlabel_menu_item_activate_item_cb(): + removed alloca(). + 2011-06-23 * src/mimeview.[ch] diff --git a/src/summaryview.c b/src/summaryview.c index 4543cd76..1ddbed98 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -5191,7 +5191,7 @@ static void summary_colorlabel_menu_item_activate_item_cb(GtkMenuItem *menuitem, mlist = summary_get_selected_msg_list(summaryview); if (!mlist) return; - Xalloca(items, (N_COLOR_LABELS + 1) * sizeof(GtkWidget *), return); + items = g_new(GtkWidget *, N_COLOR_LABELS + 1); /* NOTE: don't return prematurely because we set the "dont_toggle" * state for check menu items */ @@ -5229,6 +5229,8 @@ static void summary_colorlabel_menu_item_activate_item_cb(GtkMenuItem *menuitem, /* reset "dont_toggle" state */ g_object_set_data(G_OBJECT(menu), "dont_toggle", GINT_TO_POINTER(0)); + + g_free(items); } static void summary_colorlabel_menu_create(SummaryView *summaryview) |