You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some ffi-gdal wrapper objects need to call a GDAL free/release/whatever function on the wrapped auto-pointer. Right now, the instantiation of those pointers (ex. via OGRCreateGeometry()) is all one-off; in other words, the pointer that's returned from the FFI call has to manually be set to autorelease = false, leaving it really easy to miss these cases. It'd be nice to have each of these cases either define their own AutoPointer class (like in the Pointers wiki page), or at least just define a class-level release method, then all of these things can easily be enforced across the board using rbs.
The text was updated successfully, but these errors were encountered:
Some ffi-gdal wrapper objects need to call a GDAL free/release/whatever function on the wrapped auto-pointer. Right now, the instantiation of those pointers (ex. via
OGRCreateGeometry()
) is all one-off; in other words, the pointer that's returned from the FFI call has to manually be set toautorelease = false
, leaving it really easy to miss these cases. It'd be nice to have each of these cases either define their own AutoPointer class (like in the Pointers wiki page), or at least just define a class-levelrelease
method, then all of these things can easily be enforced across the board using rbs.The text was updated successfully, but these errors were encountered: