Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at funnel_stat.c:312

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

text_window_destroy

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/funnel_stat.c)expand/collapse
Show more  
 302      tw->close_cb = cb;
 303      tw->close_data = data;
 304  }
 305   
 306  static void text_window_destroy(funnel_text_window_t*  tw) {
 307      if (tw->win) {
 308          /*
 309           * the window is still there and its callbacks refer to this data structure 
 310           * we need to change the callback so that they free tw.
 311           */
 312          g_signal_connect(tw->bt_close, "clicked", G_CALLBACK(unref_text_win_cancel_bt_cb), tw);
 313          g_signal_connect(tw->win, "delete-event", G_CALLBACK(text_window_unref_del_event_cb), tw);
 314      } else {
 315                  unsigned i;
 316          /*
 317           * we have no window anymore a human user closed 
 318           * the window already just free the container 
 319           */
 320                  for (i = 0; i < tw->buttons->len; i++) {
 321                          funnel_bt_t* cbd = g_ptr_array_index(tw->buttons,i);
 322                          /* XXX a free cb should be passed somehow */  
Show more  




Change Warning 644.28827 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: