From 35670247b159dd65c174988a3d4ce3e105356d3a Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Sep 2011 00:27:09 +0200 Subject: Replace g_new0(*,1) with g_slice_new0(*) --- src/cmumble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cmumble.c b/src/cmumble.c index 0cb8a97..c72ba25 100644 --- a/src/cmumble.c +++ b/src/cmumble.c @@ -170,7 +170,7 @@ recv_user_remove(MumbleProto__UserRemove *remove, struct context *ctx) ctx->users = g_list_remove(ctx->users, user); g_free(user->name); /* FIXME: destroy playback pipeline */ - g_free(user); + g_slice_free(struct user, user); } } @@ -187,7 +187,7 @@ recv_user_state(MumbleProto__UserState *state, struct context *ctx) return; } - user = g_new0(struct user, 1); + user = g_slice_new0(struct user); if (user == NULL) { g_printerr("Out of memory.\n"); exit(1); -- cgit