From: Jose Quaresma Date: Sun, 14 Jun 2020 15:48:45 +0000 (+0100) Subject: Gst.py: unref __parent__ on unmap otherwise it cause a memory leak X-Git-Tag: 1.19.3~485^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bea8e5c6ca77ba3289bcce106d417d443ec3762b;p=platform%2Fupstream%2Fgstreamer.git Gst.py: unref __parent__ on unmap otherwise it cause a memory leak --- diff --git a/gi/overrides/Gst.py b/gi/overrides/Gst.py index c62d9e1..e7eeb29 100644 --- a/gi/overrides/Gst.py +++ b/gi/overrides/Gst.py @@ -631,6 +631,7 @@ class Buffer(Gst.Buffer): raise MapError('MappingError','Buffer mapping was not successfull') def unmap(self, mapinfo): + mapinfo.__parent__ = None if _gi_gst.buffer_override_unmap(self, mapinfo) is not True: raise MapError('UnmappingError','Buffer unmapping was not successfull') @@ -647,6 +648,7 @@ class Memory(Gst.Memory): raise MapError('MappingError','Memory mapping was not successfull') def unmap(self, mapinfo): + mapinfo.__parent__ = None return _gi_gst.memory_override_unmap(self, mapinfo) Memory = override(Memory)