CtdlSaveMsgPointersInRoom() also call AdjRefCountList() once instead of AdjRefCount...
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 5 Mar 2012 23:14:34 +0000 (00:14 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 5 Mar 2012 23:14:34 +0000 (00:14 +0100)
citadel/msgbase.c

index 143b6cb2a7d2bdb76eec08223e18651ebcf1a72c..5ba6d698e1d00723ee8b00672181a1e766721094 100644 (file)
@@ -2794,9 +2794,7 @@ int CtdlSaveMsgPointersInRoom(char *roomname, long newmsgidlist[], int num_newms
 
        /* Bump the reference count for all messages which were merged */
        if (!suppress_refcount_adj) {
-               for (i=0; i<num_msgs_to_be_merged; ++i) {
-                       AdjRefCount(msgs_to_be_merged[i], +1);
-               }
+               AdjRefCountList(msgs_to_be_merged, num_msgs_to_be_merged, +1);
        }
 
        /* Free up memory... */