diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-03-23 18:03:29 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-03-23 18:03:29 +0000 |
commit | c7a0b37b7924905da7312660f7f5fc4362c28ea3 (patch) | |
tree | 027b430100bb90320ea5eaed3fe50711aa76908d /libgphoto2/gphoto2-abilities-list.c | |
parent | b5665eee7a7d8807a395e357ca8318bcf09fac2a (diff) | |
download | libgphoto2-c7a0b37b7924905da7312660f7f5fc4362c28ea3.tar.gz |
if VALGRIND is defined, do not unload the libraries
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14851 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/gphoto2-abilities-list.c')
-rw-r--r-- | libgphoto2/gphoto2-abilities-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgphoto2/gphoto2-abilities-list.c b/libgphoto2/gphoto2-abilities-list.c index 17f1d511d..9d5004238 100644 --- a/libgphoto2/gphoto2-abilities-list.c +++ b/libgphoto2/gphoto2-abilities-list.c @@ -272,7 +272,10 @@ gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, continue; } + /* do not free the library in valgrind mode */ +#if !defined(VALGRIND) lt_dlclose (lh); +#endif new_count = gp_abilities_list_count (list); if (new_count < 0) |