mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
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)
|
||||
free_node(&list->values[n]);
|
||||
}
|
||||
delete[] list->keys;
|
||||
delete[] list->values;
|
||||
}
|
||||
delete[] list->keys;
|
||||
delete[] list->values;
|
||||
delete list;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user