# HG changeset patch # User Ethan Blanton # Date 1150586550 0 # Node ID 71a6a6b22149a31847b6dd80060ca1e42884f3f8 # Parent 6c3c8d0d389ffd88eee1d85ceb2f5d2f9639b8fc [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 diff -r 6c3c8d0d389f -r 71a6a6b22149 src/gaim_buffer.c --- 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); }