org-element: Fix memory leak in cache
commit0a5f5117a3e66982e22998006d4afa2de0d7e9b1
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 12 Mar 2014 13:53:47 +0000 (12 14:53 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 12 Mar 2014 14:18:47 +0000 (12 15:18 +0100)
tree35ed9637b81306513e23deb0159d9ccdbf4a35b0
parent1e402cee8b0f18cd27bba86f3ffcd094d94ec78f
org-element: Fix memory leak in cache

* lisp/org-element.el (org-element--cache-put): Do not store objects
  within headlines in cache as headlines are not cached, and,
  therefore, never removed.  This prevents adding the same object in
  cache multiple times without ever garbage collecting it.
lisp/org-element.el