changeset 13828:71a6a6b22149

[gaim-migrate @ 16273] This fixes a crash when gaim_circ_buffer_destroy is called with a NULL circular buffer. I'm using g_return_if_fail so it still reports a warning, because it is possible that the circumstance in question shouldn't even come up. If that isn't the case, we can make it fail silently. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sat, 17 Jun 2006 23:22:30 +0000
parents 6c3c8d0d389f
children b6967e51f6c4
files src/gaim_buffer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaim_buffer.c	Sat Jun 17 01:33:09 2006 +0000
+++ b/src/gaim_buffer.c	Sat Jun 17 23:22:30 2006 +0000
@@ -34,6 +34,7 @@
 }
 
 void gaim_circ_buffer_destroy(GaimCircBuffer *buf) {
+	g_return_if_fail(buf);
 	g_free(buf->buffer);
 	g_free(buf);
 }