-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shader Graph memory leak plumbing (#5553)
* 2 down * Unregister some delegates in GraphEditorView.Dispose. * fix more leeks * Update change log * PR Feedback - lots of using statements instead of explicit Dispose. * PR Feedback - a couple more using statements instead of explicit Dispose. * Move GC finalize registration calls into #if * Update CHANGELOG.md Co-authored-by: Marc Templin <marctem@users.noreply.github.com> Co-authored-by: Kerry Turner <mskerryturner@gmail.com>
- Loading branch information
1 parent
15db9d6
commit 728baa8
Showing
16 changed files
with
603 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,5 +104,10 @@ void OnEnable() | |
{ | ||
Validate(); | ||
} | ||
|
||
void OnDestroy() | ||
{ | ||
graph?.OnDisable(); | ||
} | ||
} | ||
} |
305 changes: 154 additions & 151 deletions
305
com.unity.shadergraph/Editor/Data/Nodes/AbstractMaterialNode.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.