Remove se_ alloced memory from packet_list_store

Change-Id: I7aa2f5f8b433468ad2c2cd73cfce986d128a9ae0
Reviewed-on: https://code.wireshark.org/review/6565
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2015-01-16 08:15:41 -05:00
parent 0235775eee
commit 531df02736
1 changed files with 3 additions and 3 deletions

View File

@ -599,7 +599,7 @@ packet_list_append_record(PacketList *packet_list, frame_data *fdata)
g_return_val_if_fail(PACKETLIST_IS_LIST(packet_list), -1);
newrecord = se_new(PacketListRecord);
newrecord = wmem_new(wmem_file_scope(), PacketListRecord);
newrecord->colorized = FALSE;
newrecord->col_text_len = NULL;
newrecord->col_text = NULL;
@ -1108,8 +1108,8 @@ packet_list_dissect_and_cache_record(PacketList *packet_list, PacketListRecord *
if (dissect_columns) {
cinfo = &cfile.cinfo;
record->col_text = (const gchar **)se_alloc0(sizeof(*record->col_text) * packet_list->n_text_cols);
record->col_text_len = (gushort *)se_alloc0(sizeof(*record->col_text_len) * packet_list->n_text_cols);
record->col_text = (const gchar **)wmem_alloc0(wmem_file_scope(), sizeof(*record->col_text) * packet_list->n_text_cols);
record->col_text_len = (gushort *)wmem_alloc0(wmem_file_scope(), sizeof(*record->col_text_len) * packet_list->n_text_cols);
} else
cinfo = NULL;