@@ -1219,11 +1219,15 @@ local function source_signal_processor(source_settings, source_name, signal)
1219
1219
if program_scene_active and current_program_scene_name ~= program_scene_name then
1220
1220
for _ , program_source_name , program_source_settings , program_source_is_visible in
1221
1221
get_plugin_settings_from_scene (program_scene_name , camera_id ) do
1222
- if program_source_is_visible then
1222
+ if program_source_settings ~= nil and program_source_is_visible then
1223
1223
log (" Run shutdown action for scene '%s' source '%s' (camera %d) before activation of '%s'" ,
1224
1224
program_scene_name , program_source_name , camera_id , current_program_scene_name )
1225
1225
do_cam_scene_action (program_source_settings , scene_action_at .Stop )
1226
1226
end
1227
+
1228
+ if program_source_settings ~= nil then
1229
+ obs .obs_data_release (program_source_settings )
1230
+ end
1227
1231
end
1228
1232
1229
1233
-- Set the program scene for which stop actions are already executed to false
@@ -1314,12 +1318,12 @@ local function fe_callback(event, data)
1314
1318
1315
1319
-- Activate the Visca sources in the now visible scene
1316
1320
if activate_sources then
1317
- if source_settings and source_is_visible then
1321
+ if source_settings ~= nil and source_is_visible then
1318
1322
source_signal_processor (source_settings , source_name , { show_fe_event = true })
1319
1323
end
1320
1324
end
1321
1325
1322
- if source_settings then
1326
+ if source_settings ~= nil then
1323
1327
obs .obs_data_release (source_settings )
1324
1328
end
1325
1329
end
0 commit comments