diff options
author | nyamatongwe <devnull@localhost> | 2009-07-12 23:01:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-12 23:01:15 +0000 |
commit | da74fac3e81338d08b8b0c196b92bc298be9673e (patch) | |
tree | 6a8eb71edc5b0f713eac8704ff7fb63b1cf00afc /src/CallTip.cxx | |
parent | e88520dcbd24f2bcbf6ebe9d49cb2370b9ce8cd1 (diff) | |
download | scintilla-mirror-da74fac3e81338d08b8b0c196b92bc298be9673e.tar.gz |
Since exception handling now turned on, do not check return value from new.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r-- | src/CallTip.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 9f5f88476..511282eab 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -256,9 +256,8 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn, clickPlace = 0; if (val) delete []val; + val = 0; val = new char[strlen(defn) + 1]; - if (!val) - return PRectangle(); strcpy(val, defn); codePage = codePage_; Surface *surfaceMeasure = Surface::Allocate(); |