Skip to content

Commit dd859f6

Browse files
committed
Oops! Ownership.
1 parent 05a4628 commit dd859f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/rugged/rugged_revwalk.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static VALUE rb_git_walker_reset(VALUE self)
206206
}
207207

208208
struct walk_options {
209-
VALUE rb_self;
209+
VALUE rb_owner;
210210
VALUE rb_options;
211211

212212
git_repository *repo;
@@ -288,7 +288,7 @@ static VALUE do_walk(VALUE _payload)
288288
rugged_exception_check(error);
289289

290290
rb_yield(
291-
rugged_object_new(rugged_owner(w->rb_self), (git_object *)commit)
291+
rugged_object_new(w->rb_owner, (git_object *)commit)
292292
);
293293
}
294294

@@ -366,7 +366,7 @@ static VALUE rb_git_walk(int argc, VALUE *argv, VALUE self)
366366
Data_Get_Struct(rb_repo, git_repository, w.repo);
367367
rugged_exception_check(git_revwalk_new(&w.walk, w.repo));
368368

369-
w.rb_self = self;
369+
w.rb_owner = rb_repo;
370370
w.rb_options = rb_options;
371371

372372
w.oid_only = 0;
@@ -392,7 +392,7 @@ static VALUE rb_git_walk_with_opts(int argc, VALUE *argv, VALUE self, int oid_on
392392
Data_Get_Struct(self, git_revwalk, w.walk);
393393
w.repo = git_revwalk_repository(w.walk);
394394

395-
w.rb_self = self;
395+
w.rb_owner = rugged_owner(self);
396396
w.rb_options = Qnil;
397397

398398
w.oid_only = oid_only;

0 commit comments

Comments
 (0)