Commit df362eb7 authored by malenov's avatar malenov
Browse files

fix incorrect sequence of checks against a NULL pointer

parent fd36eaba
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1266,7 +1266,7 @@ void ivas_destroy_MD_bstr_enc(
    BSTR_ENC_HANDLE *hMetaData /* i/o: encoder MD bitstream handle  */
)
{
    if ( *hMetaData == NULL || hMetaData == NULL )
    if ( hMetaData == NULL || *hMetaData == NULL )
    {
        return;
    }