diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-02-08 15:52:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-02-08 15:52:57 +0300 |
commit | 06b432dfa454b41c4a1daaf76483ea049ebe1443 (patch) | |
tree | d29b46c0bfc722e718f3a54c55a7f9de2eac2671 /source/blender/src/editcurve.c | |
parent | f5a22bc9373de23c33ff0596ea64ca931731a6f3 (diff) |
Changed MEM_freeN(nu->knotsu);
to..
if (nu->knotsu) MEM_freeN(nu->knotsu);
Python created curves have nu->knotsu set to zero and was throwing.
Memoryblock free: attempt to free NULL pointer
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r-- | source/blender/src/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c index b660836f9d2..576e8155f63 100644 --- a/source/blender/src/editcurve.c +++ b/source/blender/src/editcurve.c @@ -1874,7 +1874,7 @@ int convertspline(short type, Nurb *nu) else if( (nu->type & 7)==CU_NURBS) { if(type==0) { /* to Poly */ nu->type &= ~7; - MEM_freeN(nu->knotsu); + if(nu->knotsu) MEM_freeN(nu->knotsu); /* python created nurbs have a knotsu of zero */ nu->knotsu= 0; if(nu->knotsv) MEM_freeN(nu->knotsv); nu->knotsv= 0; |