aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-09-19 01:58:24 +0000
committerEvan Huus <eapache@gmail.com>2012-09-19 01:58:24 +0000
commitbf976a10cba4d826889bcc6ce9e0e46c17aa6fbb (patch)
treefd7e06e7da47da5735b6e4d5933b66c4e69dc19a /ui
parent22b7086fb91f059b1c6637cc881ac93fa10fff51 (diff)
Use g_new instead of g_malloc to avoid manual C-style casting in C++ code.
svn path=/trunk/; revision=44998
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/capture_interface_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/capture_interface_dialog.cpp b/ui/qt/capture_interface_dialog.cpp
index 35829495e1..320805f731 100644
--- a/ui/qt/capture_interface_dialog.cpp
+++ b/ui/qt/capture_interface_dialog.cpp
@@ -64,7 +64,7 @@ capture_remote_combo_add_recent(gchar *s)
/* Empty remote host */
return FALSE;
- rh = (remote_host_t *) g_malloc (sizeof (remote_host_t));
+ rh = g_new (remote_host_t, 1);
/* First value is the host */
rh->remote_host = g_strdup ((const gchar *) valp->data);