mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-21 05:24:47 -04:00
obs-frontend-api: Use virtual destructor (fix memory leak)
Ensures data within the derived object is automatically freed.
This commit is contained in:
1 parent
133fa04db3
commit
8f3ee3530c
1 file changed
+1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user