From b88ece085053d4b84c094702a649b00bd082f081 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 24 May 2017 16:29:00 +0200 Subject: [PATCH] Do not own the repo pointer in ruby's each method --- bindings/solv.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/solv.i b/bindings/solv.i index 5736f206..043c5491 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -2624,7 +2624,7 @@ rb_eval_string( void each() { Repo *n; while ((n = Pool_repo_iterator___next__($self)) != 0) { - rb_yield(SWIG_NewPointerObj(SWIG_as_voidptr(n), SWIGTYPE_p_Repo, SWIG_POINTER_OWN | 0)); + rb_yield(SWIG_NewPointerObj(SWIG_as_voidptr(n), SWIGTYPE_p_Repo, 0 | 0)); } } #endif -- 2.47.3