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,7 +86,8 @@ public Gst.Structure Structure {
}
~Message () {
cached_structure.CreateNativeCopy ();
if (cached_structure != null)
cached_structure.CreateNativeCopy ();
cached_structure = null;
}