From 2ae8ac3b80b523078381d175571edbaec9003b33 Mon Sep 17 00:00:00 2001 From: Nikita Edel Date: Mon, 9 Mar 2026 23:15:34 +0100 Subject: [PATCH] fix typos in comment --- .../Textures/Stitching/StitchedTexture.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Minecraft.Client/Textures/Stitching/StitchedTexture.cpp b/Minecraft.Client/Textures/Stitching/StitchedTexture.cpp index 77e0a6ba9..124c7207f 100644 --- a/Minecraft.Client/Textures/Stitching/StitchedTexture.cpp +++ b/Minecraft.Client/Textures/Stitching/StitchedTexture.cpp @@ -60,12 +60,10 @@ void StitchedTexture::freeFrameTextures() StitchedTexture::~StitchedTexture() { - // 4jcraft added null check, in PreStitchedTextures::stitch(), than ::loadUVs() - // all new SimpleIcons deriving from StitchedIcons are calling the - // constructor which does frames = NULL - // so the program breaks on delete oldClock in ::loadUVs() - // but scince "frames" is never allocated (StitchedTexture::init()) - // not called, frames was never called (only the constructor) + // 4jcraft, added null check + // the constructor does not allocate the frames vector. + // in some scenarios the destructor/delete is called + // without ever calling ::init() if(frames) { for(AUTO_VAR(it, frames->begin()); it != frames->end(); ++it) {