Mercurial > hg > xemacs-beta
comparison src/scrollbar-x.c @ 1726:a8d8f419b459
[xemacs-hg @ 2003-09-30 15:26:34 by james]
Add type information to xfree to avoid alias creation.
author | james |
---|---|
date | Tue, 30 Sep 2003 15:27:01 +0000 |
parents | 01c57eb70ae9 |
children | 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
71 /* A device method. */ | 71 /* A device method. */ |
72 static void | 72 static void |
73 x_free_scrollbar_instance (struct scrollbar_instance *instance) | 73 x_free_scrollbar_instance (struct scrollbar_instance *instance) |
74 { | 74 { |
75 if (SCROLLBAR_X_NAME (instance)) | 75 if (SCROLLBAR_X_NAME (instance)) |
76 xfree (SCROLLBAR_X_NAME (instance)); | 76 xfree (SCROLLBAR_X_NAME (instance), char *); |
77 | 77 |
78 if (SCROLLBAR_X_WIDGET (instance)) | 78 if (SCROLLBAR_X_WIDGET (instance)) |
79 { | 79 { |
80 if (XtIsManaged (SCROLLBAR_X_WIDGET (instance))) | 80 if (XtIsManaged (SCROLLBAR_X_WIDGET (instance))) |
81 XtUnmanageChild (SCROLLBAR_X_WIDGET (instance)); | 81 XtUnmanageChild (SCROLLBAR_X_WIDGET (instance)); |
82 | 82 |
83 lw_destroy_all_widgets (SCROLLBAR_X_ID (instance)); | 83 lw_destroy_all_widgets (SCROLLBAR_X_ID (instance)); |
84 } | 84 } |
85 | 85 |
86 if (instance->scrollbar_data) | 86 if (instance->scrollbar_data) |
87 xfree (instance->scrollbar_data); | 87 xfree (instance->scrollbar_data, void *); |
88 } | 88 } |
89 | 89 |
90 /* A device method. */ | 90 /* A device method. */ |
91 static void | 91 static void |
92 x_release_scrollbar_instance (struct scrollbar_instance *instance) | 92 x_release_scrollbar_instance (struct scrollbar_instance *instance) |