Commit f0ba402d authored by Scott Wheeler's avatar Scott Wheeler

Oops. Missed a case. If we match the first element in the linked list at

the specified location in the hash tree, don't crash by deferencing 0;
instead either make the next element in the linked list the first element or
if there is no next element, remove the list.

svn path=/trunk/kdemultimedia/juk/; revision=242608
parent 1cda188d
......@@ -88,7 +88,15 @@ bool StringHash::remove(const QString &value)
return false;
previous->next = i->next;
previous->next = i->next;
else {
m_table.insert(h, i->next);
delete i;
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment