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:
Dario Lombardo 2015-11-25 17:20:11 +01:00 committed by Alexis La Goutte
parent ac7982cf9b
commit b314342c00
1 changed files with 3 additions and 2 deletions

View File

@ -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)