Skip to content

Commit

Permalink
one possible to try to fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Feb 7, 2024
1 parent d022ba5 commit 5e4d1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/z3c/jbot/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_and_bind(template, view=None, cls=None):

def get_skin_obj(obj, view=None, cls=None):
layer = utility.getLayer()
key = layer, obj
key = layer, repr(obj)
inst = registry.get(key)
if inst is None:
cls = obj.__class__
Expand All @@ -138,7 +138,7 @@ def get_skin_obj(obj, view=None, cls=None):
for manager in utility.getManagers(layer):
# register template; this call returns ``True`` if the
# template was invalidated (changed filename)
if manager.registerTemplate(inst, obj):
if manager.registerTemplate(inst, repr(obj)):
inst._parsed = False
inst.getObjectFSPath()

Expand Down

0 comments on commit 5e4d1a0

Please sign in to comment.