Update of /cvsroot/playerstage/code/stage/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26137/src

Modified Files:
        model_gripper.c 
Log Message:
fixed memory leak in gripper

Index: model_gripper.c
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/model_gripper.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** model_gripper.c     24 Mar 2006 22:52:51 -0000      1.25
--- model_gripper.c     12 May 2006 22:09:50 -0000      1.26
***************
*** 391,394 ****
--- 391,395 ----
  int gripper_break_beam(stg_model_t* mod, stg_gripper_config_t* cfg, int beam) 
  {
+   int result;
    stg_geom_t geom;
    stg_model_get_geom( mod, &geom );
***************
*** 427,434 ****
    // if the breakbeam strikes anything
    if( itl_first_matching( itl, gripper_raytrace_match, mod ) )
!     return 1;
!   
!   //else
!   return 0;
  }
  
--- 428,438 ----
    // if the breakbeam strikes anything
    if( itl_first_matching( itl, gripper_raytrace_match, mod ) )
!     result = 1;
!   else
!     result = 0;
! 
!   itl_destroy(itl);
! 
!   return(result);
  }
  



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to