summaryrefslogtreecommitdiff
path: root/libgphoto2_port/libgphoto2_port
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2010-03-20 22:56:42 +0000
committerMarcus Meissner <marcus@jet.franken.de>2010-03-20 22:56:42 +0000
commitce47a2c1e353c9501e18a52b11dd92d7bde5a67e (patch)
treef27df0ddb4033684c503d1bc331bf0de3c4165a2 /libgphoto2_port/libgphoto2_port
parente9de64be97b613749380873b1fb2d7b1d9ff992a (diff)
downloadlibgphoto2-ce47a2c1e353c9501e18a52b11dd92d7bde5a67e.tar.gz
free dynamic strings on exit
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12819 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/libgphoto2_port')
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
index 0694b1ebb..2bab7a05d 100644
--- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
+++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
@@ -138,6 +138,16 @@ gp_port_info_list_free (GPPortInfoList *list)
CHECK_NULL (list);
if (list->info) {
+ int i;
+
+ for (i=0;i<list->count;i++) {
+ free (list->info[i]->name);
+ list->info[i]->name = NULL;
+ free (list->info[i]->path);
+ list->info[i]->path = NULL;
+ free (list->info[i]->library_filename);
+ list->info[i]->library_filename = NULL;
+ }
free (list->info);
list->info = NULL;
}