obs-frontend-api: Use virtual destructor (fix memory leak)
Ensures data within the derived object is automatically freed.
This commit is contained in:
parent
133fa04db3
commit
8f3ee3530c
@ -6,6 +6,7 @@
|
||||
#include <string>
|
||||
|
||||
struct obs_frontend_callbacks {
|
||||
virtual ~obs_frontend_callbacks() {}
|
||||
virtual void *obs_frontend_get_main_window(void)=0;
|
||||
virtual void *obs_frontend_get_main_window_handle(void)=0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user