Skip to content

Commit

Permalink
Merge pull request #386 from libvips/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
jcupitt authored Feb 19, 2024
2 parents f61f7a7 + b735f3e commit 27d2c3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -38,7 +38,6 @@ jobs:
matrix:
os-version: [ 'ubuntu-20.04' ]
ruby-version:
- '2.0'
- '2.1'
- '2.2'
- '2.3'
Expand All @@ -56,7 +55,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
6 changes: 3 additions & 3 deletions lib/vips/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,14 @@ def self.new_from_source source, option_string, **opts
loader = Vips.vips_foreign_find_load_source source
raise Vips::Error if loader.nil?

image = Vips::Operation.call loader, [source], opts, option_string
result = Vips::Operation.call loader, [source], opts, option_string

# keep a secret ref to the source object ... the libvips loader will
# keep a ref to the C source object, but we need the ruby wrapper object
# to stay alive too
image.references << source
result.references << source

image
result
end

def self.matrix_from_array width, height, array
Expand Down

0 comments on commit 27d2c3a

Please sign in to comment.