From da26fe26c4edb87378adca9555e36794323c752e Mon Sep 17 00:00:00 2001 From: "B. Bogart" Date: Fri, 24 Apr 2009 02:27:11 +0000 Subject: 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 --- gphoto/gphoto.c | 2 ++ gphoto/makefile | 4 ++-- 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 -- cgit v1.2.1