svtools/source/contnr/treelist.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 884e052395e4e28212d8f3744382713405d04eb8 Author: Marc-André Laverdière <[email protected]> Date: Fri Mar 8 19:22:58 2013 -0500 Documentation to avoid a real use-after-free bug Change-Id: Ie8a4432b0a70703fbfe92480ad0608b659a887d0 Reviewed-on: https://gerrit.libreoffice.org/2608 Reviewed-by: Fridrich Strba <[email protected]> Tested-by: Fridrich Strba <[email protected]> diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 307d861..55beae9 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); }
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
