mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
Fix null pointer dereference in text lookup
Fix potential null pointer dereference for when splitting a node.
This commit is contained in:
parent
4b17bb89ed
commit
44066f8e61
@ -27,9 +27,11 @@ struct text_leaf {
|
||||
|
||||
static inline void text_leaf_destroy(struct text_leaf *leaf)
|
||||
{
|
||||
bfree(leaf->lookup);
|
||||
bfree(leaf->value);
|
||||
bfree(leaf);
|
||||
if (leaf) {
|
||||
bfree(leaf->lookup);
|
||||
bfree(leaf->value);
|
||||
bfree(leaf);
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user