Crash / Segmentation Fault upon deleting measurement in a footprint in the PCB Editor.

Description

I can crash KiCad reliably by attempting to remove a measurement from a footprint. in the PCB Editor. I did this at least 5 times to verify, and repeated it in this dummy project.

2023-08-15_asdf_HX711_Crash.zip

Steps to reproduce

  1. Open attached Project.
  2. Open PCB Editor.
  3. Press "a" and add the HX711_Module footprint to the PCB.
  4. Select the measurement (either 17 or 29mm).
  5. Press [Del] to delete it.

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 7.0.7-7.0.7~ubuntu20.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.10.1
	HarfBuzz 6.0.0
	FontConfig 2.13.1

Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, xfce, x11

	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.5.2
	Curl: 7.88.1
	ngspice: 38
	Compiler: GCC 9.4.0 with C++ ABI 1013

Build settings:
	KICAD_SPICE=ON