pEp_utility.cpp
branchCOM-28
changeset 158 8c13eb85db47
parent 157 ce82a4a45fc5
child 171 44bfd5428aa9
     1.1 --- a/pEp_utility.cpp	Thu Sep 01 13:38:38 2016 +0200
     1.2 +++ b/pEp_utility.cpp	Mon Sep 05 11:22:42 2016 +0200
     1.3 @@ -530,5 +530,10 @@
     1.4  
     1.5  			*pair_list_out = array_from_C<opt_field, stringpair_list_t>(spair_list);
     1.6  		}
     1.7 +		void clear_opt_field_array(LPSAFEARRAY* opt_field_array) {
     1.8 +			SafeArrayDestroy(*opt_field_array);
     1.9 +			//memset(*opt_field_array, 0, sizeof(SAFEARRAY*));
    1.10 +			*opt_field_array = NULL;
    1.11 +		}
    1.12      }
    1.13  }