comparison win/dw.c @ 2615:ac51cbdcfbe5

dw_menu_destroy() should zero out the handle passed, GTK does this already. Also check the pointer is valid before using it in Mac and iOS.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 23 Jul 2021 15:28:42 +0000
parents 2acc7ba5dea0
children d17e3fb76bde
comparison
equal deleted inserted replaced
2614:dbcd9416e9c9 2615:ac51cbdcfbe5
6482 if(cinfo) 6482 if(cinfo)
6483 mymenu = cinfo->hmenu; 6483 mymenu = cinfo->hmenu;
6484 } 6484 }
6485 if(IsMenu(mymenu)) 6485 if(IsMenu(mymenu))
6486 DestroyMenu(mymenu); 6486 DestroyMenu(mymenu);
6487 *menu = NULL;
6487 } 6488 }
6488 } 6489 }
6489 6490
6490 /* Internal function to make sure menu ID isn't in use */ 6491 /* Internal function to make sure menu ID isn't in use */
6491 int _menuid_allocated(int id) 6492 int _menuid_allocated(int id)