]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Do not own the repo pointer in ruby's each method
authorMichael Schroeder <mls@suse.de>
Wed, 24 May 2017 14:29:00 +0000 (16:29 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 24 May 2017 14:29:00 +0000 (16:29 +0200)
bindings/solv.i

index 5736f2065c4759131d5388faeffd84881c702345..043c549169b05338df6747ce7218bbf5d83b5929 100644 (file)
@@ -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