Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63b4251b authored by Paul McLean's avatar Paul McLean
Browse files

Add missing usb_device_close() in (native) getDescriptorString().

Bug: 71359796
Test: Connect SkyLab and Mir devices and observe correct expected behavior.
Change-Id: I70b5df2f381330b073f6fc7086db493da44b1bb1
parent 26d5b41f
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -94,6 +94,9 @@ jstring JNICALL Java_com_android_server_usb_descriptors_UsbDescriptorParser_getD
        j_str = env->NewString((jchar*)byteBuffer, numUSC2Bytes/2);
        j_str = env->NewString((jchar*)byteBuffer, numUSC2Bytes/2);
        free(byteBuffer);
        free(byteBuffer);
    }
    }

    usb_device_close(device);

    return j_str;
    return j_str;
}
}