ref: refs/heads/master
commit fc9629e496ca86feb5fb3e935d0e51dd27b84aef
Author: Klaus Kämpf
Date: Mon Mar 9 09:38:25 2009 +0100
Add a no-op Pool destructor
This is to prevent Pythons over-eager leak detection to trigger
a false warning. bnc#483252.
---
bindings/pool.i | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/bindings/pool.i b/bindings/pool.i
index 2f97e7c..a3004da 100644
--- a/bindings/pool.i
+++ b/bindings/pool.i
@@ -100,6 +100,16 @@ typedef struct _Pool {} Pool;
}
/*
+ * Pool destructor
+ *
+ * Implemented as no-op, see 'discard' for details.
+ *
+ */
+
+ ~Pool()
+ { }
+
+ /*
* Document-method: discard
*
* There is no destructor defined for Pool since the pool pointer
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org