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
Branches
No related tags found
No related merge requests found
...@@ -80,10 +80,12 @@ classdef FaustCore < handle ...@@ -80,10 +80,12 @@ classdef FaustCore < handle
%% Destructor - Destroy the C++ class instance %% Destructor - Destroy the C++ class instance
function delete(this) function delete(this)
% destructor delete the faust % destructor delete the faust
if (this.isRealFlag) if(isa(this.objectHandle, 'integer'))
mexFaustReal('delete', this.objectHandle); if (this.isRealFlag)
else mexFaustReal('delete', this.objectHandle);
mexFaustCplx('delete', this.objectHandle); else
mexFaustCplx('delete', this.objectHandle);
end
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment