projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6634c95
)
Make "gradient destroy" bullet-proof
author
c vw
<dl1ycf@darc.de>
Mon, 17 Aug 2020 13:26:39 +0000
(15:26 +0200)
committer
c vw
<dl1ycf@darc.de>
Mon, 17 Aug 2020 13:26:39 +0000
(15:26 +0200)
rx_panadapter.c
patch
|
blob
|
history
diff --git
a/rx_panadapter.c
b/rx_panadapter.c
index ece8eb77e22dd58128de6ddc090f7d8caf6ede4b..8e6885b299f7f29a95e4ccacc064e36b0ac3bfc2 100644
(file)
--- a/
rx_panadapter.c
+++ b/
rx_panadapter.c
@@
-530,6
+530,7
@@
void rx_panadapter_update(RECEIVER *rx) {
}
cairo_pattern_t *gradient;
+ gradient=NULL;
if(display_gradient) {
gradient = cairo_pattern_create_linear(0.0, display_height, 0.0, 0.0);
// calculate where S9 is
@@
-569,7
+570,7
@@
void rx_panadapter_update(RECEIVER *rx) {
cairo_set_line_width(cr, LINE_WIDTH);
cairo_stroke(cr);
- if(
display_
gradient) {
+ if(gradient) {
cairo_pattern_destroy(gradient);
}