Check the cached message structure for null before trying to create a copy

This commit is contained in:
Sebastian Dröge 2009-04-22 11:55:52 +02:00
parent 02e2d6e3fc
commit e1ea52daaf

View file

@ -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;
} }