diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-05-29 09:50:43 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-05-29 09:50:43 +1000 |
commit | ead808cdad0c6b7b9706c044bf078feefa101852 (patch) | |
tree | 7edcf9ef93c477e7711f3283c8f6d47f575ed09e | |
parent | a5679f2347b8d9270f3bdff722c386e07d773703 (diff) | |
download | scintilla-mirror-ead808cdad0c6b7b9706c044bf078feefa101852.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.mm | 18 |
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() {} |