From 6cbfee4579787a322817ae91c629ae19278d9939 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 22 Apr 2020 22:54:11 +0200 Subject: [PATCH] obs-tools: Add OBS data deleter --- source/obs/obs-tools.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/obs/obs-tools.hpp b/source/obs/obs-tools.hpp index f160093c..56c02be2 100644 --- a/source/obs/obs-tools.hpp +++ b/source/obs/obs-tools.hpp @@ -62,4 +62,9 @@ namespace obs { { obs_sceneitem_remove(v); } + + inline void obs_data_deleter(obs_data_t* v) + { + obs_data_release(v); + } } // namespace obs