--- nono/vm/gvram.cpp 2026/04/29 17:04:28 1.1.1.1 +++ nono/vm/gvram.cpp 2026/04/29 17:04:32 1.1.1.2 @@ -13,7 +13,7 @@ // バイトアクセス時は HB() マクロを使用のこと。 // -GVRAMDevice *gGVRAM; +std::unique_ptr gGVRAM; GVRAMDevice::GVRAMDevice() { @@ -22,12 +22,11 @@ GVRAMDevice::GVRAMDevice() devaddr = 0xc00000; devlen = 0x200000; // XXX とりあえず - mem = new uint8[devlen]; + mem.reset(new uint8[devlen]); } GVRAMDevice::~GVRAMDevice() { - delete[] mem; } uint64