Mercurial > pidgin
comparison finch/libgnt/gntwm.c @ 17826:ab71a09600ad
Changed a malloc use to g_new0
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Mon, 04 Jun 2007 03:08:59 +0000 |
parents | aeb8c9fbb577 |
children | 43a55528ff26 |
comparison
equal
deleted
inserted
replaced
17825:aeb8c9fbb577 | 17826:ab71a09600ad |
---|---|
571 | 571 |
572 GntWidget *win = gnt_window_new(); | 572 GntWidget *win = gnt_window_new(); |
573 GList * currentRowData,*itr; | 573 GList * currentRowData,*itr; |
574 char * tmp; | 574 char * tmp; |
575 | 575 |
576 rebind_info = (RebindInfo*)malloc(sizeof(RebindInfo)); | 576 rebind_info = g_new0(RebindInfo,1); |
577 rebind_info->keys = NULL; | 577 rebind_info->keys = NULL; |
578 rebind_info->klass = GNT_BINDABLE_GET_CLASS(widget); | 578 rebind_info->klass = GNT_BINDABLE_GET_CLASS(widget); |
579 currentRowData = gnt_tree_get_selection_text_list(tree); | 579 currentRowData = gnt_tree_get_selection_text_list(tree); |
580 rebind_info->name = g_list_nth_data(currentRowData,1); | 580 rebind_info->name = g_list_nth_data(currentRowData,1); |
581 rebind_info->params = NULL; | 581 rebind_info->params = NULL; |