[gaim-migrate @ 16273]

Sat, 17 Jun 2006 23:22:30 +0000

author
Ethan Blanton <elb@pidgin.im>
date
Sat, 17 Jun 2006 23:22:30 +0000
changeset 13830
2318daee4585
parent 13829
ac73840b2117
child 13831
448d1c6328e0

[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.

src/gaim_buffer.c file | annotate | diff | comparison | revisions
--- 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);
 }

mercurial