accessing pointer from object source of memory leak?

If you've been staying tuned, I'd first like to say thank you for your patience. I just really need a breakdown of what you can and can't do with pointers, or at least a set of rules or something. Next I would like to ask:

could the following code cause a memory leak or malloc error:

//in main:
animator anim;
//bitmap pointer thing is member of anim,initialized to 0 in constructor
void draw()
{
anim.updatesprite(); //thing gets redrawn in this method
draw_bitmap(screen,anim.thing,x,y,0,0,width,height); //now its directly accessed
//thing is being copied onto bitmap screen in specified x,y coordinates
}
int main()
{
anim.initializesprite(width,height);
draw();
return 0;
}

assume updatesprite, draw_bitmap are flawless and cause no errors as presented.
Topic archived. No new replies allowed.