Commit 8c7306e4 authored by Martin Pitt's avatar Martin Pitt
Browse files

Unref GVariants when destroying the wrapper

https://bugzilla.gnome.org/show_bug.cgi?id=675472
parent d6c091d8
......@@ -171,6 +171,9 @@ class Variant(GLib.Variant):
raise TypeError('invalid remaining format string: "%s"' % rest_format)
return v
def __del__(self):
self.unref()
def __repr__(self):
return '<GLib.Variant(%s)>' % getattr(self, 'print')(True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment