mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
call gluDeleteQuadric only if sphare is initialised
This commit is contained in:
parent
3b3ab9f68f
commit
2a4a7b4ab8
1 changed files with 3 additions and 2 deletions
|
@ -80,8 +80,9 @@ Head::Head()
|
|||
}
|
||||
|
||||
Head::~Head() {
|
||||
// all data is primitive, do nothing
|
||||
gluDeleteQuadric(sphere);
|
||||
if (sphere) {
|
||||
gluDeleteQuadric(sphere);
|
||||
}
|
||||
}
|
||||
|
||||
Head* Head::clone() const {
|
||||
|
|
Loading…
Reference in a new issue