mirror of
https://github.com/Cxbx-Reloaded/subhook.git
synced 2024-12-13 05:35:48 +00:00
Add a call to subhook_free() in example snippet
This commit is contained in:
parent
1268996b23
commit
21e76ee388
@ -37,6 +37,9 @@ int main() {
|
|||||||
/* Install our newly created hook so from now on any call to foo()
|
/* Install our newly created hook so from now on any call to foo()
|
||||||
* will be redirected to my_foo(). */
|
* will be redirected to my_foo(). */
|
||||||
subhook_install(foo_hook);
|
subhook_install(foo_hook);
|
||||||
|
|
||||||
|
/* Free the memory when you're done. */
|
||||||
|
subhook_free(foo_hook);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user