diff options
author | Omar Emara <mail@OmarEmara.dev> | 2022-08-17 16:11:35 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2022-08-17 16:11:35 +0300 |
commit | 923e10d7513b53588a9b13888de1d958d5f6d57f (patch) | |
tree | 9628ddc4aff4da54cf27620a95dc0756f1d9e32f /source | |
parent | f4040da3efb0a1c2603644cadbeb26d6764771aa (diff) |
Fix: Crash if Movie Clip node has an empty movie
The movie clip GPU texture free function doesn't do null checks, so make
sure the movie clip is not null before freeing.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_movieclip.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_movieclip.cc b/source/blender/nodes/composite/nodes/node_composite_movieclip.cc index ec95de3da18..7c1a61cedc4 100644 --- a/source/blender/nodes/composite/nodes/node_composite_movieclip.cc +++ b/source/blender/nodes/composite/nodes/node_composite_movieclip.cc @@ -247,7 +247,9 @@ class MovieClipOperation : public NodeOperation { void free_movie_clip_texture() { MovieClip *movie_clip = get_movie_clip(); - return BKE_movieclip_free_gputexture(movie_clip); + if (movie_clip) { + BKE_movieclip_free_gputexture(movie_clip); + } } MovieClip *get_movie_clip() |