summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-14 13:50:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-11-15 14:35:43 +0100
commitfef51fad10c2f7ec7827dcf4c07277ebdfb898e8 (patch)
tree82d1920011c4ce85bcd4f93a642caccd10008977 /include
parent8f445220038d40cbcafb27cdf2d370c645fe1f5f (diff)
don't leak userdata
Change-Id: I9a9687290bf7dd9c3705baf18dd89c8b5ed72c09 Reviewed-on: https://gerrit.libreoffice.org/63367 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/builder.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 203b44e96871..d795b5cdc915 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -116,6 +116,9 @@ private:
VclBuilder(const VclBuilder&) = delete;
VclBuilder& operator=(const VclBuilder&) = delete;
+ // owner for ListBox/ComboBox UserData
+ std::vector<std::unique_ptr<OUString>> m_aUserData;
+
//If the toplevel window has any properties which need to be set on it,
//but the toplevel is the owner of the builder, then its ctor
//has not been completed during the building, so properties for it