[glib] Fix a alloc/free mismatch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix a alloc/free mismatch
- Date: Sun, 27 Jun 2010 23:29:11 +0000 (UTC)
commit eb454a1cb4d8ea16f6b5575c69e58c2877ea350e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 27 19:27:04 2010 -0400
Fix a alloc/free mismatch
Pointed out in http://bugzilla.redhat.com/show_bug.cgi?id=608453
by David Tardon.
glib/gbuffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gbuffer.c b/glib/gbuffer.c
index 4eb83df..5830f04 100644
--- a/glib/gbuffer.c
+++ b/glib/gbuffer.c
@@ -138,7 +138,7 @@ g_buffer_free_usernotify (GBuffer *buffer)
GUserNotifyBuffer *ubuffer = (GUserNotifyBuffer *) buffer;
ubuffer->user_destroy (ubuffer->user_data);
- g_slice_free (GBuffer, buffer);
+ g_slice_free (GUserNotifyBuffer, ubuffer);
}
/* < private >
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]