Revision: 16273
Author: eblanton
Date: 2006-06-17 16:22:30 -0700 (Sat, 17 Jun 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16273&view=rev
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/src/gaim_buffer.c
Modified: trunk/src/gaim_buffer.c
===================================================================
--- trunk/src/gaim_buffer.c 2006-06-17 02:11:13 UTC (rev 16272)
+++ trunk/src/gaim_buffer.c 2006-06-17 23:22:30 UTC (rev 16273)
@@ -34,6 +34,7 @@
}
void gaim_circ_buffer_destroy(GaimCircBuffer *buf) {
+ g_return_if_fail(buf);
g_free(buf->buffer);
g_free(buf);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|