From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 661E66DE0AF4 for ; Fri, 9 Sep 2016 17:54:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.007 X-Spam-Level: X-Spam-Status: No, score=-0.007 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5k05EmQlX6G6 for ; Fri, 9 Sep 2016 17:54:01 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id CEB156DE0ABE for ; Fri, 9 Sep 2016 17:54:00 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1biWYL-0001wU-6F; Fri, 09 Sep 2016 20:53:53 -0400 Received: (nullmailer pid 18629 invoked by uid 1000); Sat, 10 Sep 2016 00:53:58 -0000 From: David Bremner To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH v2 02/14] cli/reply: push notmuch reply format abstraction lower in the stack In-Reply-To: <3760ff3cc6083d5f24c280a97121beccce8e0c5e.1471088022.git.jani@nikula.org> References: <3760ff3cc6083d5f24c280a97121beccce8e0c5e.1471088022.git.jani@nikula.org> User-Agent: Notmuch/0.22.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 09 Sep 2016 21:53:58 -0300 Message-ID: <87mvjg1snt.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sat, 10 Sep 2016 00:54:01 -0000 Jani Nikula writes: > - if (mime_node_open (ctx, message, &(params->crypto), &root) == NOTMUCH_STATUS_SUCCESS) { > - format_part_reply (root); > - talloc_free (root); > - } > + g_object_unref (G_OBJECT (reply)); > > - notmuch_message_destroy (message); > + if (mime_node_open (ctx, message, ¶ms->crypto, &root) == NOTMUCH_STATUS_SUCCESS) { > + format_part_reply (root); > + talloc_free (root); I'm not sure I should admit this, but I'd have to check a book to make sure that ¶ms->crypto is the same as &(params->crypto)