Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c7814fb7 authored by hhakim's avatar hhakim
Browse files

Fix matlab Faust destructor bug occurring when factors passed are invalid...

Fix matlab Faust destructor bug occurring when factors passed are invalid because of not matching dimensions and hence the Faust object is not really instantiated.
parent ce364670
No related branches found
No related tags found
No related merge requests found
......@@ -80,10 +80,12 @@ classdef FaustCore < handle
%% Destructor - Destroy the C++ class instance
function delete(this)
% destructor delete the faust
if (this.isRealFlag)
mexFaustReal('delete', this.objectHandle);
else
mexFaustCplx('delete', this.objectHandle);
if(isa(this.objectHandle, 'integer'))
if (this.isRealFlag)
mexFaustReal('delete', this.objectHandle);
else
mexFaustCplx('delete', this.objectHandle);
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment