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

Commit 46966c82 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix sp<> crash on stack-allocated service object."

parents b5affd26 201734e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@ static void canControllerService() {
    configureRpcThreadpool(16, true);
    LOG(DEBUG) << "CAN controller service starting...";

    CanController canController;
    if (canController.registerAsService("socketcan") != OK) {
    sp<CanController> canController(new CanController);
    if (canController->registerAsService("socketcan") != OK) {
        LOG(FATAL) << "Failed to register CAN controller";
        return;
    }