Exemple #1
0
// Close closes connection to server.
func (conn *Conn) Close() {
	C.pa_simple_free(conn.simple)
}
Exemple #2
0
// Stream.Free closes the stream and frees the associated memory.
// The stream becomes invalid after this has been called.
// This should usually be deferred immediately after obtaining a stream.
func (s *Stream) Free() {
	C.pa_simple_free(s.simple)
}