summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_touchsupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c
index 7a2e6c922b..3206579adf 100644
--- a/apps/gui/skin_engine/skin_touchsupport.c
+++ b/apps/gui/skin_engine/skin_touchsupport.c
@@ -52,7 +52,7 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset,
52 short vx, vy; 52 short vx, vy;
53 int type = action_get_touchscreen_press(&x, &y); 53 int type = action_get_touchscreen_press(&x, &y);
54 static int last_action = ACTION_NONE; 54 static int last_action = ACTION_NONE;
55 struct touchregion *r, *temp; 55 struct touchregion *r, *temp = NULL;
56 bool repeated = (type == BUTTON_REPEAT); 56 bool repeated = (type == BUTTON_REPEAT);
57 bool released = (type == BUTTON_REL); 57 bool released = (type == BUTTON_REL);
58 bool pressed = (type == BUTTON_TOUCHSCREEN); 58 bool pressed = (type == BUTTON_TOUCHSCREEN);
@@ -119,7 +119,7 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset,
119 /* On release, all regions are disarmed. */ 119 /* On release, all regions are disarmed. */
120 if (released) 120 if (released)
121 skin_disarm_touchregions(data); 121 skin_disarm_touchregions(data);
122 if (retregion) 122 if (retregion && temp)
123 *retregion = temp; 123 *retregion = temp;
124 124
125 if (returncode != ACTION_NONE) 125 if (returncode != ACTION_NONE)