From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0A351138200 for ; Fri, 20 Sep 2013 08:30:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 047FDE0B0D; Fri, 20 Sep 2013 08:30:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D1A3E0AF8 for ; Fri, 20 Sep 2013 08:30:40 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8ACA933EBD2 for ; Fri, 20 Sep 2013 08:30:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 417C8E545D for ; Fri, 20 Sep 2013 08:30:38 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1379049743.ad10facbf3648567ecd7cde95a58163413a957ee.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed-curses-types.c X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: ad10facbf3648567ecd7cde95a58163413a957ee X-VCS-Branch: master Date: Fri, 20 Sep 2013 08:30:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 696f3d06-a0c0-449d-9295-6c324a05db72 X-Archives-Hash: 81971e1198472fbfc750547d38a6959a commit: ad10facbf3648567ecd7cde95a58163413a957ee Author: Sven Eden gmx net> AuthorDate: Fri Sep 13 05:22:23 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Fri Sep 13 05:22:23 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=ad10facb destroyFlag(): Included destruction of the new sWrap chains if present --- ufed-curses-types.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ufed-curses-types.c b/ufed-curses-types.c index a09336b..2ccfa9a 100644 --- a/ufed-curses-types.c +++ b/ufed-curses-types.c @@ -219,6 +219,16 @@ void destroyFlag (sFlag** root, sFlag** flag) free (xFlag->desc[i].desc); if (xFlag->desc[i].desc_alt) free (xFlag->desc[i].desc_alt); + if (xFlag->desc[i].wrap) { + sWrap* wrapRoot = xFlag->desc[i].wrap; + sWrap* wrapNext = wrapRoot ? wrapRoot->next : NULL; + xFlag->desc[i].wrap = NULL; + while (wrapRoot) { + free (wrapRoot); + wrapRoot = wrapNext; + wrapNext = wrapRoot ? wrapRoot->next : NULL; + } + } } if (xFlag->desc) free (xFlag->desc);