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

Unref GVariants when destroying the wrapper
parent d6c091d8
......@@ -171,6 +171,9 @@ class Variant(GLib.Variant):
raise TypeError('invalid remaining format string: "%s"' % rest_format)
return v
def __del__(self):
def __repr__(self):
return '<GLib.Variant(%s)>' % getattr(self, 'print')(True)
Supports Markdown
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