mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +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,6 +86,7 @@ public Gst.Structure Structure {
|
||||||
}
|
}
|
||||||
|
|
||||||
~Message () {
|
~Message () {
|
||||||
|
if (cached_structure != null)
|
||||||
cached_structure.CreateNativeCopy ();
|
cached_structure.CreateNativeCopy ();
|
||||||
cached_structure = null;
|
cached_structure = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue