aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-05-29 09:50:43 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-05-29 09:50:43 +1000
commit1e78b48d799e5094a2fbf98aa521158febb0eab2 (patch)
tree18de3fd4242a1a2ecaac85b5b6bd7aea64b53038
parentd86dd6e98616a5e4928ca7e701f444544bdfcabd (diff)
downloadscintilla-mirror-1e78b48d799e5094a2fbf98aa521158febb0eab2.tar.gz
Bug [#1728]. Initialise fields to nil when they may be released in ReleaseViews
without ever being allocated by Create.
-rw-r--r--cocoa/PlatCocoa.mm18
1 files changed, 15 insertions, 3 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 02cae162b..fd3e97619 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1532,9 +1532,21 @@ private:
void* doubleClickActionData;
public:
- ListBoxImpl() : lineHeight(10), unicodeMode(false),
- desiredVisibleRows(5), maxItemWidth(0), aveCharWidth(8), maxIconWidth(0),
- doubleClickAction(NULL), doubleClickActionData(NULL)
+ ListBoxImpl() :
+ lineHeight(10),
+ unicodeMode(false),
+ desiredVisibleRows(5),
+ maxItemWidth(0),
+ aveCharWidth(8),
+ maxIconWidth(0),
+ maxWidth(2000),
+ table(nil),
+ scroller(nil),
+ colIcon(nil),
+ colText(nil),
+ ds(nil),
+ doubleClickAction(nullptr),
+ doubleClickActionData(nullptr)
{
}
~ListBoxImpl() {}