summaryrefslogtreecommitdiff
path: root/src/cgg.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2010-12-12 16:57:10 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2010-12-12 16:57:10 +0100
commit9f32e7a3eb5559d1e1b3a5de2c12e3e92ac6af0c (patch)
treef9674380685b98ddc72043e16f794b1f568fdb92 /src/cgg.c
parent0c518f173d0081f442a7647774bd7d8dd370a28c (diff)
downloadcataract-9f32e7a3eb5559d1e1b3a5de2c12e3e92ac6af0c.tar.xz
Fix leaked struct
Diffstat (limited to 'src/cgg.c')
-rw-r--r--src/cgg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cgg.c b/src/cgg.c
index 00101c8..c158dfd 100644
--- a/src/cgg.c
+++ b/src/cgg.c
@@ -121,13 +121,11 @@ main (int argc, char* argv[])
/* Initialize ImageMagick at this point, for multithreading safety */
MagickWandGenesis();
- setup = g_malloc0 (sizeof (TGallerySetup));
-
/* Parse commandline */
if (! parse_cmd (argc, argv))
return -1;
- if ((! source_dir) || (access (source_dir, R_OK))) {
+ if (! source_dir || access (source_dir, R_OK)) {
fprintf (stderr, "error: source directory must be specified and pointing to valid structure\n");
return -4;
}