Mercurial > vim
annotate pixmaps/tb_copy.xpm @ 31525:f7c82a85e88a v9.0.1095
patch 9.0.1095: using freed memory when declaration fails
Commit: https://github.com/vim/vim/commit/6ef5471afa69a654888bc285a51a6035405d33a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 25 19:31:36 2022 +0000
patch 9.0.1095: using freed memory when declaration fails
Problem: Using freed memory when declaration fails. (Yegappan Lakshmanan)
Solution: After unreferencing an object set the reference to NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Dec 2022 20:45:04 +0100 |
parents | 3fc0f57ecb91 |
children |
rev | line source |
---|---|
7 | 1 /* XPM */ |
2 static char * tb_copy_xpm[] = { | |
3 /* width height ncolors cpp [x_hot y_hot] */ | |
4 "18 18 4 1 0 0", | |
5 /* colors */ | |
6 " s none m none c none", | |
7 ". s iconColor1 m black c #000000", | |
8 "X s iconColor2 m none c #FFFFFF", | |
9 "o s bottomShadowColor m black c #5D6069", | |
10 /* pixels */ | |
11 " ", | |
12 " ", | |
13 " .......... ", | |
14 " .XXXXXXXX.o ", | |
15 " .X............. ", | |
16 " .XXXX.XXXXXXXX. ", | |
17 " .X....X......X.o ", | |
18 " .XXXX.XXXXXXXX.o ", | |
19 " .X....X......X.o ", | |
20 " .XXXX.XXXXXXXX.o ", | |
21 " .X..X.X......X.o ", | |
22 " .XXXX.XXXXXXXX.o ", | |
23 " ......X..XXXXX.o ", | |
24 " oooo.XXXXXXXX.o ", | |
25 " ..........o ", | |
26 " ooooooooo ", | |
27 " ", | |
28 " "}; |