X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3892380ca140d1be955a8cf79d16310479f484c2..e1bdd5078c90d3813a815fc86ee3dd050b2ee1d3:/src/common/hash.cpp diff --git a/src/common/hash.cpp b/src/common/hash.cpp index 900219c6d1..2909e48183 100644 --- a/src/common/hash.cpp +++ b/src/common/hash.cpp @@ -681,11 +681,14 @@ void wxHashTable::DeleteContents (bool flag) void wxHashTable::Clear () { - int i; - for (i = 0; i < n; i++) + int i; + if (hash_table) { - if (hash_table[i]) - hash_table[i]->Clear (); + for (i = 0; i < n; i++) + { + if (hash_table[i]) + hash_table[i]->Clear (); + } } m_count = 0; }