gmime r1319 - in trunk: . gmime
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1319 - in trunk: . gmime
- Date: Sat, 31 May 2008 22:17:06 +0000 (UTC)
Author: fejj
Date: Sat May 31 22:17:06 2008
New Revision: 1319
URL: http://svn.gnome.org/viewvc/gmime?rev=1319&view=rev
Log:
2008-05-31 Jeffrey Stedfast <fejj novell com>
* gmime/gmime-header.c (g_mime_header_list_invalidate_iters): Only
unlink the iter if the headers are being destroyed.
Modified:
trunk/ChangeLog
trunk/gmime/gmime-header.c
Modified: trunk/gmime/gmime-header.c
==============================================================================
--- trunk/gmime/gmime-header.c (original)
+++ trunk/gmime/gmime-header.c Sat May 31 22:17:06 2008
@@ -472,7 +472,7 @@
* @header: a #GMimeHeader
*
* Invalidate all outstanding iterators that are currently referencing
- * @header. If @header is NULL, then invalidate all iterators.
+ * @header. If @header is %NULL, then invalidate all iterators.
**/
static void
g_mime_header_list_invalidate_iters (GMimeHeaderList *headers, GMimeHeader *header)
@@ -486,11 +486,12 @@
if (!header || iter->cursor == header) {
/* invalidate this iter */
- list_unlink ((ListNode *) iter);
iter->cursor = NULL;
if (header == NULL) {
- /* invalidating because HeaderList is being destroyed */
+ /* invalidating because HeaderList is
+ * being destroyed */
+ list_unlink ((ListNode *) iter);
iter->headers = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]