qt: move file close (CID 1159303)
Change-Id: Ib21327babc77324313a1b3e2dd6ba0987a8fb333 Reviewed-on: https://code.wireshark.org/review/12144 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
ac7982cf9b
commit
b314342c00
|
@ -93,7 +93,7 @@ void SCTPChunkStatisticsDialog::initializeChunkMap()
|
|||
|
||||
void SCTPChunkStatisticsDialog::fillTable(bool all)
|
||||
{
|
||||
FILE* fp;
|
||||
FILE* fp = NULL;
|
||||
|
||||
pref_t *pref = prefs_find_preference(prefs_find_module("sctp"),"statistics_chunk_types");
|
||||
uat_t *uat = pref->varp.uat;
|
||||
|
@ -187,8 +187,9 @@ void SCTPChunkStatisticsDialog::fillTable(bool all)
|
|||
j++;
|
||||
}
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
if (fp)
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
void SCTPChunkStatisticsDialog::contextMenuEvent( QContextMenuEvent * event)
|
||||
|
|
Loading…
Reference in New Issue