Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pygobject
Commits
8c7306e4
Commit
8c7306e4
authored
May 05, 2012
by
Martin Pitt
Browse files
Unref GVariants when destroying the wrapper
https://bugzilla.gnome.org/show_bug.cgi?id=675472
parent
d6c091d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
gi/overrides/GLib.py
View file @
8c7306e4
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment