diff options
author | Moshe Kaplan <me@moshekaplan.com> | 2020-12-22 14:24:09 -0500 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2020-12-23 11:47:17 +0000 |
commit | 180b5e5dc0ad393e1af141f4bb5ee66e31ce8d7e (patch) | |
tree | e904bec758915049fd275a90d862d512f88da9be /tshark.c | |
parent | 1c7edf49f83815b56367e6d0441445e8a4981a72 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |