summaryrefslogtreecommitdiff
path: root/lib/ffi/autopointer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi/autopointer.rb')
-rw-r--r--lib/ffi/autopointer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ffi/autopointer.rb b/lib/ffi/autopointer.rb
index 6c6333c..bd4c911 100644
--- a/lib/ffi/autopointer.rb
+++ b/lib/ffi/autopointer.rb
@@ -107,6 +107,7 @@ module FFI
# @return [Boolean] +autorelease+
# Set +autorelease+ property. See {Pointer Autorelease section at Pointer}.
def autorelease=(autorelease)
+ raise FrozenError.new("can't modify frozen #{self.class}") if frozen?
@releaser.autorelease=(autorelease)
end