|
@@ -158,9 +158,9 @@ impl Buffer {
|
|
|
|
|
|
fn __gc(state: lua_State) -> Result<i32, Box<dyn std::error::Error>> {
|
|
|
unsafe {
|
|
|
- let _ = lua::Lcheckudata(state, 1, lua::cstr!("cslb"))
|
|
|
+ lua::Lcheckudata(state, 1, lua::cstr!("cslb"))
|
|
|
.cast::<Self>()
|
|
|
- .read();
|
|
|
+ .drop_in_place();
|
|
|
Ok(0)
|
|
|
}
|
|
|
}
|