1. TortoiseHg
  2. TortoiseHg
  3. thg
Issue #1254 resolved

Memory leaks in thg.exe

Anonymous created an issue

There are memory leaks in TortoiseHg Workbench. Steps:

open repository in tab

(Optional) scroll down repository changeset list

close repository tab

repeate step 1-3.

After each loop working set memory will increased. After closing repository's tab allocated memory doesn't deallocate.

Comments (2)

  1. Yuya Nishihara

    repomodel: remove circular reference to self from _columnmap (fixes #1254)

    Because we disables automatic GC and invokes it manually (see d5a9ae16b56b), circularly-referenced objects seem hard to be collected. Thus HgRepoListModel objects cannot be freed for a long time.

    Also note that Python prefers reference-counting than mark-and-sweep-like algorithm.

    See also: - http://arctrix.com/nas/python/gc/ - http://www.kylev.com/2009/11/03/finding-my-first-python-reference-cycle/

    3fb940d4c4e7

  2. Log in to comment