forked from mirrors/gstreamer-rs
gstreamer/uri_handler: Only assign to GError**
s if they're not NULL
This commit is contained in:
parent
840a1129ba
commit
11a85449e7
1 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,9 @@ unsafe extern "C" fn uri_handler_set_uri<T: URIHandlerImpl>(
|
|||
) {
|
||||
Ok(()) => true.into_glib(),
|
||||
Err(error) => {
|
||||
*err = error.into_raw();
|
||||
if !err.is_null() {
|
||||
*err = error.into_raw();
|
||||
}
|
||||
false.into_glib()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue