Mercurial > vim
annotate runtime/ftplugin/swift.vim @ 34651:d299b4b3099f v9.1.0210
patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails
Commit: https://github.com/vim/vim/commit/9ccc2972373c8310c20ae7621b9c634d0dc43e26
Author: Christian Brabandt <cb@256bit.org>
Date: Tue Mar 26 18:44:48 2024 +0100
patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails
Problem: Motif: leaking memory when mui_mch_dialog() fails
(LuMingYinDetect)
Solution: When allocating the label using the XmStringCreateLtoR()
function fails, before returning also free the allocated
buttons pointer.
fixes: #14247
closes: #14280
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Mar 2024 19:00:03 +0100 |
parents | e2e2cc5d0856 |
children |
rev | line source |
---|---|
19180 | 1 " This source file is part of the Swift.org open source project |
2 " | |
3 " Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors | |
4 " Licensed under Apache License v2.0 with Runtime Library Exception | |
5 " | |
6 " See https://swift.org/LICENSE.txt for license information | |
7 " See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | |
8 " | |
23573 | 9 " Vim maintainer: Emir SARI <bitigchi@me.com> |
10 " Last Change: 2021 Jan 08 | |
11 | |
12 " Only do this when not done yet for this buffer | |
13 if exists("b:did_ftplugin") | |
14 finish | |
15 endif | |
16 | |
17 let b:did_ftplugin = 1 | |
18 let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<" | |
19180 | 19 |
20 setlocal comments=s1:/*,mb:*,ex:*/,:///,:// | |
21 setlocal expandtab | |
19721 | 22 setlocal sw=4 sts=4 |
19180 | 23 setlocal smartindent |