aboutsummaryrefslogtreecommitdiffstats
path: root/capture_stop_conditions.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-05 23:58:58 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-05 23:58:58 +0000
commit149786d5636601988d126927a64ce517690ee49c (patch)
treecb3c54c2b0f0cac5cf1c2e1cb602d09ad46ec3d1 /capture_stop_conditions.c
parent1106ac410594177a2acb3987d24c80e742bd29fa (diff)
replace malloc and alike calls by their GLib pendants -> g_malloc
svn path=/trunk/; revision=15232
Diffstat (limited to 'capture_stop_conditions.c')
-rw-r--r--capture_stop_conditions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/capture_stop_conditions.c b/capture_stop_conditions.c
index 1eb7a443cd..6c1b9e83c7 100644
--- a/capture_stop_conditions.c
+++ b/capture_stop_conditions.c
@@ -84,7 +84,7 @@ typedef struct _cnd_timeout_dat{
static condition* _cnd_constr_timeout(condition* cnd, va_list ap){
cnd_timeout_dat *data = NULL;
/* allocate memory */
- if((data = (cnd_timeout_dat*)malloc(sizeof(cnd_timeout_dat))) == NULL)
+ if((data = (cnd_timeout_dat*)g_malloc(sizeof(cnd_timeout_dat))) == NULL)
return NULL;
/* initialize user data */
data->start_time = time(NULL);
@@ -101,7 +101,7 @@ static condition* _cnd_constr_timeout(condition* cnd, va_list ap){
*/
static void _cnd_destr_timeout(condition* cnd){
/* free memory */
- free(cnd_get_user_data(cnd));
+ g_free(cnd_get_user_data(cnd));
} /* END _cnd_destr_timeout() */
/*
@@ -159,7 +159,7 @@ typedef struct _cnd_capturesize_dat{
static condition* _cnd_constr_capturesize(condition* cnd, va_list ap){
cnd_capturesize_dat *data = NULL;
/* allocate memory */
- if((data = (cnd_capturesize_dat*)malloc(sizeof(cnd_capturesize_dat))) == NULL)
+ if((data = (cnd_capturesize_dat*)g_malloc(sizeof(cnd_capturesize_dat))) == NULL)
return NULL;
/* initialize user data */
data->max_capture_size = va_arg(ap, long);
@@ -175,7 +175,7 @@ static condition* _cnd_constr_capturesize(condition* cnd, va_list ap){
*/
static void _cnd_destr_capturesize(condition* cnd){
/* free memory */
- free(cnd_get_user_data(cnd));
+ g_free(cnd_get_user_data(cnd));
} /* END _cnd_destr_capturesize() */
/*