Author: dmeyer
Date: Fri Jan 19 14:46:43 2007
New Revision: 2424

Modified:
   trunk/popcorn/src/backends/base.py

Log:
use weakref for prop callbacks

Modified: trunk/popcorn/src/backends/base.py
==============================================================================
--- trunk/popcorn/src/backends/base.py  (original)
+++ trunk/popcorn/src/backends/base.py  Fri Jan 19 14:46:43 2007
@@ -37,6 +37,7 @@
 
 # kaa imports
 import kaa.notifier
+from kaa.weakref import weakref
 
 # kaa.popcorn imports
 from kaa.popcorn.ptypes import *
@@ -98,7 +99,7 @@
         for name, func in [ (func, getattr(self, func)) for func in dir(self) 
]:
             if callable(func) and hasattr(func, '_runtime_policy'):
                 name = name[10:].replace('_', '-')
-                self._property_callbacks[name] = func
+                self._property_callbacks[name] = weakref(func)
 
     #
     # state handling

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to