diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-04 20:10:20 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-04 20:10:20 +0800 |
commit | d3c53c44780da382ed2bf17fbcff9d71b234e48d (patch) | |
tree | 3206c064f8efb58fa13aed91e0014cc913b9ffe5 | |
parent | a86f21ab5cf567281f3e22bfd4409bbfbbcf78e4 (diff) | |
download | gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar.gz gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar.bz2 gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar.lz gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar.xz gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.tar.zst gsoc2013-empathy-d3c53c44780da382ed2bf17fbcff9d71b234e48d.zip |
pixbuf_avatar_from_individual_closure_new: use the g_slice allocator
We are likely to allocate a bunch of those so best to use the g_slice
allocator.
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 3c9e40b69..7c6c6a7f0 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -584,7 +584,7 @@ pixbuf_avatar_from_individual_closure_new (FolksIndividual *individual, g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL); g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL); - closure = g_new0 (PixbufAvatarFromIndividualClosure, 1); + closure = g_slice_new0 (PixbufAvatarFromIndividualClosure); closure->result = g_object_ref (result); closure->width = width; closure->height = height; @@ -601,7 +601,7 @@ pixbuf_avatar_from_individual_closure_free ( { g_clear_object (&closure->cancellable); g_object_unref (closure->result); - g_free (closure); + g_slice_free (PixbufAvatarFromIndividualClosure, closure); } /** |