diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-13 00:27:09 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-13 00:30:05 +0200 |
commit | 35670247b159dd65c174988a3d4ce3e105356d3a (patch) | |
tree | 72da33640c290054a3da4cac8f252dc39523a451 /src/cmumble.c | |
parent | 5ae591ac8ca98c4f640c8899acaca0e28f5bc25a (diff) | |
download | cmumble-35670247b159dd65c174988a3d4ce3e105356d3a.tar.gz cmumble-35670247b159dd65c174988a3d4ce3e105356d3a.tar.bz2 cmumble-35670247b159dd65c174988a3d4ce3e105356d3a.zip |
Replace g_new0(*,1) with g_slice_new0(*)
Diffstat (limited to 'src/cmumble.c')
-rw-r--r-- | src/cmumble.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |