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
|
|
@ -564,7 +564,7 @@ void OBSBasic::RenameTransition()
|
|||
{
|
||||
QAction *action = reinterpret_cast<QAction *>(sender());
|
||||
QVariant variant = action->property("transition");
|
||||
obs_source_t *transition = variant.value<OBSSource>();
|
||||
OBSSource transition = variant.value<OBSSource>();
|
||||
|
||||
string name;
|
||||
QString placeHolderText = QT_UTF8(obs_source_get_name(transition));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue