File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ static int vidcap_ndi_init(struct vidcap_params *params, void **state)
196196 // Not required, but "correct" (see the SDK documentation)
197197 if (!s->NDIlib ->initialize ()) {
198198 LOG (LOG_LEVEL_ERROR) << MOD_NAME << " Cannot initialize NDI!\n " ;
199- delete s ;
199+ vidcap_ndi_done (s) ;
200200 return VIDCAP_INIT_FAIL;
201201 }
202202 if ((vidcap_params_get_flags (params) & VIDCAP_FLAG_AUDIO_ANY) != 0u ) {
@@ -235,7 +235,7 @@ static int vidcap_ndi_init(struct vidcap_params *params, void **state)
235235 ref_level = strtol (val, &endptr, 0 );
236236 if (ref_level < 0 || ref_level >= INT_MAX || *val == ' \0 ' || *endptr != ' \0 ' ) {
237237 LOG (LOG_LEVEL_ERROR) << MOD_NAME << " Wrong value: " << val << " !\n " ;
238- delete s ;
238+ vidcap_ndi_done (s) ;
239239 return VIDCAP_INIT_NOERR;
240240 }
241241 }
You can’t perform that action at this time.
0 commit comments