qthelper: fix potential NULL deref in error path

Found by clang-tidy.
This commit is contained in:
wm4 2016-03-22 10:01:59 +01:00
parent d6c99c8513
commit c8b6ca9070
1 changed files with 2 additions and 2 deletions

View File

@ -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->values;
} }
delete[] list->keys;
delete[] list->values;
delete list; delete list;
break; break;
} }