From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B927E429E21 for ; Mon, 3 Oct 2011 22:06:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yfL+t3gyLNy5 for ; Mon, 3 Oct 2011 22:06:22 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CE2F6431FB6 for ; Mon, 3 Oct 2011 22:06:21 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id zt12so224537bkb.26 for ; Mon, 03 Oct 2011 22:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:organization; bh=KEbdSaoIzJCiUVqVAmtvI99G4hnhcJSuisQ7m4WZ6i4=; b=mW27h3jqZt1nAst+vAIg8bJ/IrpL/CJe8PO0C13mDgP+kVJtYjISnBI4aLw47+FCei T8HF93U1crV78H1bMIEPjG/RpnCMA+4lrKWvSgWgJRJzP/L5lGI/YYJxEUwYoAZv9ch+ RDsw5k81DdePJatuIL+zbgSYVBQIA/7v1M8YQ= Received: by 10.223.64.66 with SMTP id d2mr1066116fai.116.1317704781465; Mon, 03 Oct 2011 22:06:21 -0700 (PDT) Received: from localhost ([88.236.39.101]) by mx.google.com with ESMTPS id b10sm24023028fam.1.2011.10.03.22.06.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Oct 2011 22:06:20 -0700 (PDT) From: Ali Polatel To: David Bremner Subject: [PATCH v3 1/2] lib: destroy message object after message removal Date: Tue, 4 Oct 2011 08:06:08 +0300 Message-Id: <9b3f16ce715d2371224955bc5b6f948eaa4ee325.1317704225.git.alip@exherbo.org> X-Mailer: git-send-email 1.7.6.1 In-Reply-To: References: <20111004050046.GA6048@hayalet> In-Reply-To: References: Organization: Pink Floyd Cc: Ali Polatel , Notmuch Mailing List , Austin Clements X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 05:06:22 -0000 From: Ali Polatel notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal. --- lib/database.cc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9299c8d..d43e114 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -1769,6 +1769,8 @@ notmuch_database_remove_message (notmuch_database_t *notmuch, _notmuch_message_delete (message); else if (status == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID) _notmuch_message_sync (message); + + notmuch_message_destroy (message); } return status; -- 1.7.6.1