Move capn_init_* all into capn-malloc.c with a common create and free function

This commit is contained in:
James McKaskill 2013-05-08 22:35:52 -04:00
parent c5e771dcd0
commit f99af86cb3
5 changed files with 132 additions and 132 deletions

View file

@ -15,7 +15,7 @@ union AlignedData {
class Session {
public:
Session() {capn_init_malloc(&capn);}
~Session() {capn_free_malloc(&capn);}
~Session() {capn_free(&capn);}
struct capn capn;
};