mirror of https://github.com/mpv-player/mpv
qthelper: fix potential NULL deref in error path
Found by clang-tidy.
This commit is contained in:
parent
d6c99c8513
commit
c8b6ca9070
|
@ -202,9 +202,9 @@ private:
|
||||||
if (list->values)
|
if (list->values)
|
||||||
free_node(&list->values[n]);
|
free_node(&list->values[n]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
delete[] list->keys;
|
delete[] list->keys;
|
||||||
delete[] list->values;
|
delete[] list->values;
|
||||||
|
}
|
||||||
delete list;
|
delete list;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue