projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update.
[chise/xemacs-chise.git-]
/
src
/
scrollbar-x.c
diff --git
a/src/scrollbar-x.c
b/src/scrollbar-x.c
index
7034321
..
554be5d
100644
(file)
--- a/
src/scrollbar-x.c
+++ b/
src/scrollbar-x.c
@@
-215,6
+215,7
@@
scrollbar_instance_to_widget_value (struct scrollbar_instance *instance)
wv->scrollbar_data = xnew (scrollbar_values);
wv->name = SCROLLBAR_X_NAME (instance);
wv->scrollbar_data = xnew (scrollbar_values);
wv->name = SCROLLBAR_X_NAME (instance);
+ wv->name = xstrdup (wv->name);
wv->value = 0;
wv->key = 0;
wv->enabled = instance->scrollbar_is_active;
wv->value = 0;
wv->key = 0;
wv->enabled = instance->scrollbar_is_active;
@@
-278,9
+279,7
@@
x_update_scrollbar_instance_status (struct window *w, int active, int size,
}
if (!wv->scrollbar_data) abort ();
}
if (!wv->scrollbar_data) abort ();
- xfree (wv->scrollbar_data);
- wv->scrollbar_data = 0;
- free_widget_value (wv);
+ free_widget_value_tree (wv);
}
else if (managed)
{
}
else if (managed)
{
@@
-407,6
+406,9
@@
x_update_vertical_scrollbar_callback (Widget widget, LWLIB_ID id,
return;
mirror = find_scrollbar_window_mirror (f, id);
return;
mirror = find_scrollbar_window_mirror (f, id);
+ if (!mirror)
+ return;
+
win = real_window (mirror, 1);
if (NILP (win))
win = real_window (mirror, 1);
if (NILP (win))
@@
-610,6
+612,9
@@
x_update_horizontal_scrollbar_callback (Widget widget, LWLIB_ID id,
return;
mirror = find_scrollbar_window_mirror (f, id);
return;
mirror = find_scrollbar_window_mirror (f, id);
+ if (!mirror)
+ return;
+
win = real_window (mirror, 1);
if (NILP (win))
win = real_window (mirror, 1);
if (NILP (win))