mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
Check the cached message structure for null before trying to create a copy
This commit is contained in:
parent
02e2d6e3fc
commit
e1ea52daaf
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ public Gst.Structure Structure {
|
|||
}
|
||||
|
||||
~Message () {
|
||||
cached_structure.CreateNativeCopy ();
|
||||
if (cached_structure != null)
|
||||
cached_structure.CreateNativeCopy ();
|
||||
cached_structure = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue