Alon Bar-Lev has uploaded a new change for review.

Change subject: packagers: yum: add explicit destructor to miniyum
......................................................................

packagers: yum: add explicit destructor to miniyum

Change-Id: Ib75f01b8dd26a9f4d0b8748b45322d5619f34ac3
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/otopi/miniyum.py
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/79/15779/1

diff --git a/src/otopi/miniyum.py b/src/otopi/miniyum.py
index 9908d63..38de4d6 100755
--- a/src/otopi/miniyum.py
+++ b/src/otopi/miniyum.py
@@ -468,6 +468,8 @@
 
         """
         try:
+            self._yb = None
+
             if sink is None:
                 self._sink = self._VoidSink()
             else:
@@ -514,6 +516,12 @@
         except Exception as e:
             self._sink.error(e)
 
+    def __del__(self):
+        """Destructor"""
+        if self._yb is not None:
+            del self._yb
+            self._yb = None
+
     def selinux_role(self):
         """Setup proper selinux role.
 


-- 
To view, visit http://gerrit.ovirt.org/15779
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib75f01b8dd26a9f4d0b8748b45322d5619f34ac3
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to