aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-02-19 09:03:47 +0000
committernyamatongwe <devnull@localhost>2003-02-19 09:03:47 +0000
commit9453a45638f3f7d06f1db441d3d72615d0ca37c3 (patch)
tree240bdb0044a1a03c0365954f7f16e8415c9ce08e
parent2a25b067f78f395392499ac9f19a8028d847d07e (diff)
downloadscintilla-mirror-9453a45638f3f7d06f1db441d3d72615d0ca37c3.tar.gz
Made operator= safer if misused.
-rw-r--r--src/LineMarker.h1
1 files changed, 1 insertions, 0 deletions
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;
}