From 9453a45638f3f7d06f1db441d3d72615d0ca37c3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 19 Feb 2003 09:03:47 +0000 Subject: Made operator= safer if misused. --- src/LineMarker.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/LineMarker.h b/src/LineMarker.h index 50a0331da..ef5924f75 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -37,6 +37,7 @@ public: markType = SC_MARK_CIRCLE; fore = ColourDesired(0,0,0); back = ColourDesired(0xff,0xff,0xff); + delete pxpm; pxpm = NULL; return *this; } -- cgit v1.2.3