-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Misc memory leak fixes #7224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc memory leak fixes #7224
Changes from 8 commits
98744f5
d701879
1057453
80e7998
18c0f54
3bc7993
66d5a8e
47c3f0b
bc94f17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,5 +79,6 @@ export default class LADTableView { | |
if (this._destroy) { | ||
this._destroy(); | ||
} | ||
this.component = null; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
</option> | ||
</select> | ||
|
||
<mct-ticks | ||
<MctTicks | ||
:axis-id="id" | ||
:axis-type="'yAxis'" | ||
class="gl-plot-ticks" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ export default class Tabs { | |
if (this.destroy) { | ||
this.destroy(); | ||
} | ||
component = null; | ||
} | ||
}; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,10 @@ export default class ViewLargeAction { | |
} | ||
); | ||
this.preview = vNode.componentInstance; | ||
this.destroy = destroy; | ||
this.destroy = () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really applicable to this PR, but it looks like PreviewContainer throws a Vue warning when reusing an existing component (e.g., using viewLargeAction in a DisplayLayout):
Seems to happen with any type of component in a DisplayLayout, so probably an issue with PreviewContainer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
destroy(); | ||
this.preview = null; | ||
}; | ||
|
||
return this.preview.$el; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof, nice catch