IntPtr raw_ret = gst_event_get_structure (Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
- ret.FreeNative = false;
+ if (ret != null)
+ ret.FreeNative = false;
cached_structure = ret;
return ret;
}
IntPtr raw_ret = gst_message_get_structure (Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
- ret.FreeNative = false;
+ if (ret != null)
+ ret.FreeNative = false;
cached_structure = ret;
return ret;
}
IntPtr raw_ret = gst_query_get_structure (Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
- ret.FreeNative = false;
+ if (ret != null)
+ ret.FreeNative = false;
cached_structure = ret;
return ret;
}