mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: require unsafe for free()
This commit is contained in:
@@ -23,7 +23,9 @@ pub fn (mut cb Clipboard) clear_all() {
|
||||
|
||||
// destroy destroys the clipboard and frees its resources.
|
||||
pub fn (mut cb Clipboard) destroy() {
|
||||
cb.free()
|
||||
unsafe {
|
||||
cb.free()
|
||||
}
|
||||
}
|
||||
|
||||
// check_ownership returns `true` if the `Clipboard` has the content ownership.
|
||||
|
||||
Reference in New Issue
Block a user