aboutsummaryrefslogtreecommitdiffstats
path: root/epan/next_tvb.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/next_tvb.c')
-rw-r--r--epan/next_tvb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/next_tvb.c b/epan/next_tvb.c
index 34aaee5862..2a6512c3f3 100644
--- a/epan/next_tvb.c
+++ b/epan/next_tvb.c
@@ -25,7 +25,6 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/emem.h>
#include "next_tvb.h"
@@ -38,7 +37,7 @@ void next_tvb_init(next_tvb_list_t *list) {
void next_tvb_add_handle(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_handle_t handle) {
next_tvb_item_t *item;
- item = ep_new(next_tvb_item_t);
+ item = wmem_new(wmem_packet_scope(), next_tvb_item_t);
item->type = NTVB_HANDLE;
item->handle = handle;
@@ -59,7 +58,7 @@ void next_tvb_add_handle(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree,
void next_tvb_add_uint(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_table_t table, guint32 uint_val) {
next_tvb_item_t *item;
- item = ep_new(next_tvb_item_t);
+ item = wmem_new(wmem_packet_scope(), next_tvb_item_t);
item->type = NTVB_UINT;
item->table = table;
@@ -81,7 +80,7 @@ void next_tvb_add_uint(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, d
void next_tvb_add_string(next_tvb_list_t *list, tvbuff_t *tvb, proto_tree *tree, dissector_table_t table, const gchar *string) {
next_tvb_item_t *item;
- item = ep_new(next_tvb_item_t);
+ item = wmem_new(wmem_packet_scope(), next_tvb_item_t);
item->type = NTVB_STRING;
item->table = table;