Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Cell Array of Function Handles Leaks Memory
Date: Sun, 1 Jun 2008 20:28:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 12
Message-ID: <g1v0oi$rab$1@fred.mathworks.com>
References: <g1t973$aeg$1@fred.mathworks.com> <g1tkd6$qi9$1@fred.mathworks.com> <g1udna$sgp$1@fred.mathworks.com> <g1ueot$67i$1@fred.mathworks.com> <g1ugqh$ip1$1@fred.mathworks.com> <g1uhsa$pi4$1@fred.mathworks.com> <g1ui7i$rmf$1@fred.mathworks.com> <g1uj99$4tr$1@fred.mathworks.com> <g1un19$s9r$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212352082 27979 172.30.248.37 (1 Jun 2008 20:28:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Jun 2008 20:28:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:471667




> The downside of this solution is that another m-file is
> needed for each unique function ...

You might nest "add" into "cellArrayFunHandleLeaks". Though
it's not very nice because of the leakage.

No leakage problem for my 2008a.

Good luck,

Bruno