Skip to content

Commit

Permalink
Always free own pointer (without postblits)
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Oct 4, 2024
1 parent 4598a06 commit 0e03ca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/numem/collections/vector.d
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ public:
nogc_delete(this.memory[item]);
}
}

// Free the pointer
free(cast(void*)this.memory);
}

// Free the pointer
free(cast(void*)this.memory);
}

this.memory = null;
Expand Down

0 comments on commit 0e03ca8

Please sign in to comment.