Просмотр исходного кода

Fix #248

Fixes view controllers and other objects not appearing in references
Tanner Bennett лет назад: 6
Родитель
Сommit
b735a69c1b
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      Classes/Utility/FLEXHeapEnumerator.m

+ 1 - 6
Classes/Utility/FLEXHeapEnumerator.m

@@ -71,12 +71,10 @@ static kern_return_t reader(__unused task_t remote_task, vm_address_t remote_add
         for (unsigned int i = 0; i < zoneCount; i++) {
             malloc_zone_t *zone = (malloc_zone_t *)zones[i];
             malloc_introspection_t *introspection = zone->introspect;
-            NSString *zoneName = @(zone->zone_name);
 
-            // We only need to look at the default malloc zone.
             // This may explain why some zone functions are
             // sometimes invalid; perhaps not all zones support them?
-            if (![zoneName isEqualToString:@"DefaultMallocZone"] || !introspection) {
+            if (!introspection) {
                 continue;
             }
 
@@ -114,9 +112,6 @@ static kern_return_t reader(__unused task_t remote_task, vm_address_t remote_add
                 introspection->enumerator(TASK_NULL, (void *)&callback, MALLOC_PTR_IN_USE_RANGE_TYPE, (vm_address_t)zone, reader, &range_callback);
                 unlock_zone(zone);
             }
-
-            // Only one zone to enumerate
-            break;
         }
     }
 }