commit dc913d11e54539b78e7688be8d3b84634132697b
Author: phantomjinx <[email protected]>
Date: Sun May 15 12:16:37 2011 +0100
Stop illegal freeing of memory on exit
* directories.c
* When installed, the directory path is not being manufactured by the
init_directories function but points to the parameter passed in.
* The dispose directories function tries to free this pointer when it
really should not. However, to be consistent directories should a copy
of the path and then correctly free it.
libgtkpod/directories.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgtkpod/directories.c b/libgtkpod/directories.c
index e4c24a9..09a0a37 100644
--- a/libgtkpod/directories.c
+++ b/libgtkpod/directories.c
@@ -141,7 +141,7 @@ static gchar * init_dir(char *argv[], gchar *localdir,
gchar *fullinstalldir) {
}
if (!newdir)
- newdir = fullinstalldir;
+ newdir = g_strdup(fullinstalldir);
else {
USING_LOCAL = TRUE;
g_printf(_("Using local %s directory since program was started from
source directory:\n%s\n"), localdir, newdir);
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2