forked from bartvdbraak/blender
Cleanup: remove unused pointer in Heap
This commit is contained in:
parent
ab6417aa9f
commit
03760fed0d
@ -49,7 +49,6 @@ struct Heap {
|
||||
unsigned int bufsize;
|
||||
MemArena *arena;
|
||||
HeapNode *freenodes;
|
||||
HeapNode *nodes;
|
||||
HeapNode **tree;
|
||||
};
|
||||
|
||||
@ -163,7 +162,7 @@ HeapNode *BLI_heap_insert(Heap *heap, float value, void *ptr)
|
||||
|
||||
if (heap->freenodes) {
|
||||
node = heap->freenodes;
|
||||
heap->freenodes = (HeapNode *)(((HeapNode *)heap->freenodes)->ptr);
|
||||
heap->freenodes = heap->freenodes->ptr;
|
||||
}
|
||||
else {
|
||||
node = (HeapNode *)BLI_memarena_alloc(heap->arena, sizeof(*node));
|
||||
|
Loading…
Reference in New Issue
Block a user