diff -r b682c73492f0 -r 335d929c673e src/ldObject.cc --- a/src/ldObject.cc Mon May 05 02:19:35 2014 +0300 +++ b/src/ldObject.cc Mon May 05 16:50:36 2014 +0300 @@ -276,6 +276,11 @@ // Remove this object from the list of LDObjects g_LDObjects.removeOne (this); + // The renderer's mouse-over field also needs to be cleared... + // Remind me to implement smart pointers someday. + if (g_win->R()->objectAtCursor() == this) + g_win->R()->setObjectAtCursor (null); + delete this; }