diff options
author | Marc-André Laverdière <marc-andre@atc.tcs.com> | 2013-03-08 19:22:58 -0500 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-11 09:26:00 +0000 |
commit | 884e052395e4e28212d8f3744382713405d04eb8 (patch) | |
tree | d83ec9b6e485c3930506d0b2da81d4e08806cc0a | |
parent | b2a11dc9a1b7890d77314d0101004289088e6054 (diff) |
Documentation to avoid a real use-after-free bug
Change-Id: Ie8a4432b0a70703fbfe92480ad0608b659a887d0
Reviewed-on: https://gerrit.libreoffice.org/2608
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 307d861c90d6..55beae96826a 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -1268,6 +1268,9 @@ void SvListView::ModelIsRemoving( SvTreeListEntry* ) void SvListView::ModelHasRemoved( SvTreeListEntry* ) { + //WARNING WARNING WARNING + //The supplied pointer should have been deleted + //before this call. Be careful not to use it!!! DBG_CHKTHIS(SvListView,0); } |