[map] Shuffle fini code
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Mar 2019 01:44:01 +0000 (18:44 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Mar 2019 01:44:01 +0000 (18:44 -0700)
src/hb-map.hh

index a176ccd..f5c9991 100644 (file)
@@ -88,10 +88,10 @@ struct hb_hashmap_t
   {
     free (items);
     items = nullptr;
+    population = occupancy = 0;
   }
   void fini ()
   {
-    population = occupancy = 0;
     hb_object_fini (this);
     fini_shallow ();
   }