projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfa296e
)
dtcm: Coverity 87745 and 88154
author
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 17:54:01 +0000
(18:54 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 17:54:01 +0000
(18:54 +0100)
cde/programs/dtcm/dtcm/browser.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/browser.c
b/cde/programs/dtcm/dtcm/browser.c
index f0b60186719274e033207069ec1f01b836dfcbf9..bd0193af9af174690924da1fc63f120dd662d9c6 100644
(file)
--- a/
cde/programs/dtcm/dtcm/browser.c
+++ b/
cde/programs/dtcm/dtcm/browser.c
@@
-145,13
+145,13
@@
br_display(Calendar *c) {
for (i = 0; i < pos_cnt; i++) {
bd = (BlistData *)CmDataListGetData(bl->blist_data,
pos_list[i]);
+ if (bd) {
+ destroy_paint_cache(bd->cache, bd->cache_size);
+ bd->cache = NULL;
+ bd->cache_size = 0;
- destroy_paint_cache(bd->cache, bd->cache_size);
- bd->cache = NULL;
- bd->cache_size = 0;
-
- if (bd)
mb_update_array(bd->name, c);
+ }
}
if (pos_list)
XtFree((XtPointer)pos_list);