Guest User

Untitled

a guest
Dec 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. class B{
  2. public:
  3.  
  4.     uint8_t* t;
  5.    
  6.     B(){
  7.         t = (uint8_t *)malloc(sizeof(uint8_t) * 4);
  8.     };
  9.    
  10.     ~B(){
  11.         if( t ){
  12.             free(t);
  13.         };
  14.     };
  15.        
  16. };
Advertisement
Add Comment
Please, Sign In to add comment