University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Memory Leaks? | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Memory Leaks?
January 19, 2016
12:36 am
Avatar
Member
Members
Forum Posts: 16
Member Since:
January 18, 2016
sp_UserOfflineSmall Offline

Hi All

Just started to learn SmartBody. I've built SmartBody library and simplesmartbody example (32-bits) with OSX Xcode using svn repository. The example is running but I see memory leaks. I've made following changes (bold)

// me_ct_param_animation_utilities.h
SBAPI virtual ~PABlendData();

// me_ct_param_animation.cpp
if (!baseJoint) {
    delete module;    
    return NULL;
}

// me_ct_param_animation.cpp
else {
    delete module;   
    return NULL;
}

Thx

January 19, 2016
9:58 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Where is there a 'module' object? I don't see one in me_ct_param_animation.cpp or me_ct_param_animation.h

January 20, 2016
12:43 am
Avatar
Member
Members
Forum Posts: 16
Member Since:
January 18, 2016
sp_UserOfflineSmall Offline

Ari Shapiro said
Where is there a 'module' object? I don't see one in me_ct_param_animation.cpp or me_ct_param_animation.h

In me_ct_param_animation.cpp, method MeCtParamAnimation::createStateModule, line 913

January 20, 2016
10:09 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, I see. I'll have to take a closer look at those structures. I'm sure there are a few other memory leaks around as well. 

 

Ari

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 69

Members: 122211

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 531

Posts: 2495