diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-08-26 17:16:18 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2019-08-26 17:01:01 +0000 |
commit | 8103070fd8d50f36f622fe925c2be299848f7c23 (patch) | |
tree | 51082618a44ecf211c5481e2b9df5652f56c1ce7 | |
parent | 2729a8935351417649f3d27f94ab2e38d8080cef (diff) |
Qt: Fix memory leak in ProfileModel constructor
Change-Id: I4a0ccaebe7ab821a22b86ce1155328fd714caf50
Reviewed-on: https://code.wireshark.org/review/34376
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | ui/qt/models/profile_model.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/models/profile_model.cpp b/ui/qt/models/profile_model.cpp index faac93866a..a8a6aee8d8 100644 --- a/ui/qt/models/profile_model.cpp +++ b/ui/qt/models/profile_model.cpp @@ -136,6 +136,7 @@ ProfileModel::ProfileModel(QObject * parent) : profile_files_ << static_cast<char *>(file->data); file = gxx_list_next(file); } + g_list_free(files); loadProfiles(); } |