Commit 15f38d8fc0d9189b88f7fca256d7e524b621c932

Authored by Josh Klontz
1 parent b7a3b953

updated to latest janus

1   -Subproject commit 5e3fd95b139e8757c86c4d937b328c52129e21a4
  1 +Subproject commit a11ea479e7ec4d25097954afb04a4865257f28f2
... ...
openbr/janus.cpp
... ... @@ -40,7 +40,7 @@ janus_error janus_finalize()
40 40 struct janus_template_type : public Template
41 41 {};
42 42  
43   -janus_error janus_initialize_template(janus_template *template_)
  43 +janus_error janus_allocate(janus_template *template_)
44 44 {
45 45 *template_ = new janus_template_type();
46 46 return JANUS_SUCCESS;
... ... @@ -94,7 +94,11 @@ janus_error janus_finalize_template(janus_template template_, janus_flat_templat
94 94 flat_template += templateBytes;
95 95 *bytes += templateBytes;
96 96 }
  97 + return JANUS_SUCCESS;
  98 +}
97 99  
  100 +janus_error janus_free(janus_template template_)
  101 +{
98 102 delete template_;
99 103 return JANUS_SUCCESS;
100 104 }
... ... @@ -141,7 +145,6 @@ janus_error janus_enroll(const janus_template template_, const janus_template_id
141 145 QDataStream stream(&file);
142 146 stream << *template_;
143 147 file.close();
144   - delete template_;
145 148 return JANUS_SUCCESS;
146 149 }
147 150  
... ...