Skip to content
  • Elvis Angelaccio's avatar
    Fix mismatched new[] / delete[] valgrind warning · 910d2872
    Elvis Angelaccio authored
    QScopedPointer by default uses `delete`, even if we used `new []`.
    We would have to use the following verbose syntax:
    
        QScopedPointer<uchar, QScopedPointerArrayDeleter<uchar>> buf(new uchar[...]);
    
    But `std::unique_ptr` can do the right thing by just looking at the template
    parameter, so let's use that.
    910d2872