]> git.sesse.net Git - vlc/blobdiff - bindings/python/vlcwrapper.py
Fix memleaks (corner case).
[vlc] / bindings / python / vlcwrapper.py
index 7f64a02aa2bbc16dc3ab859f55923ce87e0c19ee..9770aefdf4e51655da7a7c83911b0dd9526e3151 100644 (file)
@@ -1,11 +1,14 @@
 """Wrapper around vlc module in order to ease the use of vlc.Object
 class (completion in ipython, access variable as attributes, etc).
 """Wrapper around vlc module in order to ease the use of vlc.Object
 class (completion in ipython, access variable as attributes, etc).
+
+$Id$
 """
 import vlc
 """
 import vlc
+import vlcinternal
 
 class VLCObject(object):
     def __init__(self, id):
 
 class VLCObject(object):
     def __init__(self, id):
-        object.__setattr__(self, '_o', vlc.Object(id))
+        object.__setattr__(self, '_o', vlcinternal.Object(id))
 
     def find(self, typ):
        """Returns a VLCObject for the given child.
 
     def find(self, typ):
        """Returns a VLCObject for the given child.