Memory leaks in thg.exe

Issue #1254 resolved
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: - -


  2. Log in to comment