From: Michael Schroeder Date: Wed, 24 May 2017 14:29:00 +0000 (+0200) Subject: Do not own the repo pointer in ruby's each method X-Git-Tag: 0.6.28~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b88ece085053d4b84c094702a649b00bd082f081;p=thirdparty%2Flibsolv.git Do not own the repo pointer in ruby's each method --- 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