Skip to content

Commit

Permalink
Work for surveyjs/survey-creator#4484 - memory leaks in survey creato…
Browse files Browse the repository at this point in the history
…r - unsubscriptions
  • Loading branch information
tsv2013 committed Aug 29, 2023
1 parent f664775 commit 9417dba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react/reactSurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class Survey extends SurveyElementBase<any, any>
}
destroySurvey() {
if (this.survey) {
this.survey.renderCallback = undefined as any;
this.survey.onPartialSend.clear();
this.survey.stopTimer();
this.survey.destroyResizeObserver();
}
Expand Down

0 comments on commit 9417dba

Please sign in to comment.