diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-07-22 03:24:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-07-22 03:24:08 +0400 |
commit | 89792eb7eeccd1cc624e28338bc7beed12bd3c34 (patch) | |
tree | b54f3aeae95c7e9f46049a2f56a14c10a393f561 /source/blender/python/api2_2x/Draw.h | |
parent | 74ca1781990bb0c56cdb0da54ed15414f30cb554 (diff) |
fixed some bugs in Draw.c
* incorrect args to Draw.Create() would crash blender because it wasnt deallocating the value properly.
* deallocation of an uninitialized button could also try and free uninitialized memory if the type happened to be a STRING.
* removed the unused tooltip pointer from teh Draw.h's Button struct.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.h')
-rw-r--r-- | source/blender/python/api2_2x/Draw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Draw.h b/source/blender/python/api2_2x/Draw.h index d852c15d28d..31776500c80 100644 --- a/source/blender/python/api2_2x/Draw.h +++ b/source/blender/python/api2_2x/Draw.h @@ -57,7 +57,7 @@ typedef struct _Button { char *asstr; float asvec[3]; } val; - char *tooltip; + /*char *tooltip;*/ } Button; #define BINT_TYPE 1 |