UI: Fix possible use-after-free of obs_source_t
Also removes an implicit pair of successive obs_source_getref and obs_source_release calls from OBSSource.
This commit is contained in:
parent
8ce4a2a154
commit
23a0b7cacd
4 changed files with 6 additions and 9 deletions
|
|
@ -2302,10 +2302,7 @@ static obs_source_t *CreateLabel(float pixelRatio)
|
|||
const char *text_source_id = "text_ft2_source";
|
||||
#endif
|
||||
|
||||
OBSSource txtSource =
|
||||
obs_source_create_private(text_source_id, NULL, settings);
|
||||
|
||||
return txtSource;
|
||||
return obs_source_create_private(text_source_id, NULL, settings);
|
||||
}
|
||||
|
||||
static void SetLabelText(int sourceIndex, int px)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue