aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorMoshe Kaplan <me@moshekaplan.com>2020-12-22 14:24:09 -0500
committerAndersBroman <a.broman58@gmail.com>2020-12-23 11:47:17 +0000
commit180b5e5dc0ad393e1af141f4bb5ee66e31ce8d7e (patch)
treee904bec758915049fd275a90d862d512f88da9be /tshark.c
parent1c7edf49f83815b56367e6d0441445e8a4981a72 (diff)
Replace more g_malloc with g_new
Replace g_malloc with g_new to improve source code readability.
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 7e31545b9e..afaa92edd9 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2393,7 +2393,7 @@ pipe_input_set_handler(gint source, gpointer user_data, ws_process_id *child_pro
pipe_input.input_cb = input_cb;
#ifdef _WIN32
- pipe_input.callback_running = g_malloc(sizeof(GMutex));
+ pipe_input.callback_running = g_new(GMutex, 1);
g_mutex_init(pipe_input.callback_running);
/* Tricky to use pipes in win9x, as no concept of wait. NT can
do this but that doesn't cover all win32 platforms. GTK can do