Fixed up wording on some errors in windows/menu.c and unix/menu.c.
This commit is contained in:
parent
9cca703b06
commit
f100989803
|
@ -372,7 +372,7 @@ void uninitMenus(void)
|
||||||
for (j = 0; j < m->items->len; j++) {
|
for (j = 0; j < m->items->len; j++) {
|
||||||
item = g_array_index(m->items, struct menuItem *, j);
|
item = g_array_index(m->items, struct menuItem *, j);
|
||||||
if (g_hash_table_size(item->windows) != 0)
|
if (g_hash_table_size(item->windows) != 0)
|
||||||
complain("menu item %p (%s) still has uiWindows attached; did you forget to free some?", item, item->name);
|
complain("menu item %p (%s) still has uiWindows attached; did you forget to destroy some windows?", item, item->name);
|
||||||
g_free(item->name);
|
g_free(item->name);
|
||||||
g_hash_table_destroy(item->windows);
|
g_hash_table_destroy(item->windows);
|
||||||
uiFree(item);
|
uiFree(item);
|
||||||
|
|
|
@ -374,7 +374,7 @@ void uninitMenus(void)
|
||||||
for (j = 0; j < m->len; j++) {
|
for (j = 0; j < m->len; j++) {
|
||||||
item = m->items[j];
|
item = m->items[j];
|
||||||
if (item->len != 0)
|
if (item->len != 0)
|
||||||
complain("menu item %p (%ws) still has uiWindows attached; did you forget to free some?", item, item->name);
|
complain("menu item %p (%ws) still has uiWindows attached; did you forget to destroy some windows?", item, item->name);
|
||||||
if (item->name != NULL)
|
if (item->name != NULL)
|
||||||
uiFree(item->name);
|
uiFree(item->name);
|
||||||
if (item->hmenus != NULL)
|
if (item->hmenus != NULL)
|
||||||
|
|
Loading…
Reference in New Issue