aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Bogart <bbogart@users.sourceforge.net>2009-04-24 02:27:11 +0000
committerB. Bogart <bbogart@users.sourceforge.net>2009-04-24 02:27:11 +0000
commitda26fe26c4edb87378adca9555e36794323c752e (patch)
tree8873dbdf9147e961c3eb3125cabb234bd9bdbc9c
parent09ddef11b5e62b8bb252fe47ccfb87616f2f519f (diff)
The makefile now includes debugging options by
default. Added an extra free() to (hopefully) solve some mem leak problems. svn path=/trunk/externals/bbogart/; revision=11108
-rw-r--r--gphoto/gphoto.c2
-rw-r--r--gphoto/makefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/gphoto/gphoto.c b/gphoto/gphoto.c
index e1544cb..258d06b 100644
--- a/gphoto/gphoto.c
+++ b/gphoto/gphoto.c
@@ -691,6 +691,8 @@ void *captureImages(void *threadArgs) {
close(fd); // close file descriptor
+ gp_file_free(camerafile);
+
// Send bang out 2nd outlet for each iteration.
sys_lock();
outlet_bang(((gphoto_gimme_struct *)threadArgs)->gphoto->doneOutlet);
diff --git a/gphoto/makefile b/gphoto/makefile
index f87381e..5b7e264 100644
--- a/gphoto/makefile
+++ b/gphoto/makefile
@@ -10,7 +10,7 @@ pd_linux: gphoto.pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
- -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wall -g -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch \
-lgphoto2 -lpthread
@@ -19,7 +19,7 @@ LINUXINCLUDE = -I../../src
.c.pd_linux:
cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c -ggdb
ld -shared -o $*.pd_linux $*.o -lc -lm -lgphoto2
- strip --strip-unneeded $*.pd_linux
+ #strip --strip-unneeded $*.pd_linux
rm $*.o