diff options
Diffstat (limited to 'src/Destroy.c')
-rw-r--r-- | src/Destroy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Destroy.c b/src/Destroy.c index 1fdf35c..ffe3f85 100644 --- a/src/Destroy.c +++ b/src/Destroy.c @@ -371,11 +371,9 @@ XtDestroyWidget(Widget widget) if (app->destroy_count == app->destroy_list_size) { app->destroy_list_size += 10; - app->destroy_list = (DestroyRec *) - XtRealloc((char *) app->destroy_list, - (Cardinal) (sizeof(DestroyRec) * - (size_t) app->destroy_list_size) - ); + app->destroy_list = XtReallocArray(app->destroy_list, + (Cardinal) app->destroy_list_size, + (Cardinal) sizeof(DestroyRec)); } dr = app->destroy_list + app->destroy_count++; dr->dispatch_level = app->dispatch_level; |