use a proper delete[]
This commit is contained in:
parent
181e6eac75
commit
6b61a8eed1
@ -49,7 +49,7 @@ SGTexture::SGTexture(unsigned int width, unsigned int height)
|
||||
|
||||
SGTexture::~SGTexture()
|
||||
{
|
||||
delete texture_data;
|
||||
delete[] texture_data;
|
||||
|
||||
if ( texture_id != 0 ) {
|
||||
free_id();
|
||||
|
Loading…
Reference in New Issue
Block a user