0
0
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:
jp9000 2014-06-14 23:47:22 -07:00
parent 4b17bb89ed
commit 44066f8e61

View File

@ -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);
}
}
/* ------------------------------------------------------------------------- */