From b86107a69940c2ba38944cb83eb16774abdb09d7 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 30 Aug 2021 13:55:05 -0700 Subject: [PATCH] Base: Add OBSPropertiesAutoDestroy --- src/obs-websocket.cpp | 1 + src/obs-websocket.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/obs-websocket.cpp b/src/obs-websocket.cpp index ba7fec2d..9668d6dc 100644 --- a/src/obs-websocket.cpp +++ b/src/obs-websocket.cpp @@ -29,6 +29,7 @@ void ___data_array_dummy_addref(obs_data_array_t*) {}; void ___output_dummy_addref(obs_output_t*) {}; void ___data_item_dummy_addref(obs_data_item_t*) {}; void ___data_item_release(obs_data_item_t* dataItem){ obs_data_item_release(&dataItem); }; +void ___properties_dummy_addref(obs_properties_t*) {}; bool obs_module_load(void) { diff --git a/src/obs-websocket.h b/src/obs-websocket.h index 8b1ffeb1..22f5fe4b 100644 --- a/src/obs-websocket.h +++ b/src/obs-websocket.h @@ -18,6 +18,7 @@ void ___data_array_dummy_addref(obs_data_array_t*); void ___output_dummy_addref(obs_output_t*); void ___data_item_dummy_addref(obs_data_item_t*); void ___data_item_release(obs_data_item_t*); +void ___properties_dummy_addref(obs_properties_t*); using OBSSourceAutoRelease = OBSRef; @@ -31,6 +32,8 @@ using OBSOutputAutoRelease = OBSRef; using OBSDataItemAutoRelease = OBSRef; +using OBSPropertiesAutoDestroy = + OBSRef; class Config; typedef std::shared_ptr ConfigPtr;