diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2010-03-20 22:56:42 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2010-03-20 22:56:42 +0000 |
commit | ce47a2c1e353c9501e18a52b11dd92d7bde5a67e (patch) | |
tree | f27df0ddb4033684c503d1bc331bf0de3c4165a2 /libgphoto2_port/libgphoto2_port | |
parent | e9de64be97b613749380873b1fb2d7b1d9ff992a (diff) | |
download | libgphoto2-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.c | 10 |
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; } |