Replace free() by g_free() (patch by Daniel Marjamaki, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4927 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
77dd8feb44
commit
23f4cd9213
@ -21,6 +21,8 @@
|
||||
* plugins/filebrowser.c:
|
||||
Implement reading and evaluating hidden file attribute on Windows.
|
||||
Fix broken "Go Up" if the current path ends with a slash.
|
||||
* THANKS, src/about.c, src/prefix.c:
|
||||
Replace free() by g_free() (patch by Daniel Marjamaki, thanks).
|
||||
|
||||
|
||||
2010-05-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
1
THANKS
1
THANKS
@ -78,6 +78,7 @@ Can Koy <cankoy(at)ymail(dot)com> - Multiple changes/improvements
|
||||
Yoann Le Montagner <yoann(dot)le-montagner(at)m4x(dot)org> - set VTE bold color
|
||||
Dimitar Zhekov <hamster(at)mbox(dot)contact(dot)bg> - matching brace improvements patch
|
||||
Ondrej Donek <ondrejd(at)gmail(dot)com> - Support for creating PHP classes with the classbuilder plugin
|
||||
Daniel Marjamaki <danielm77(at)spray(dot)se> - Small improvements
|
||||
|
||||
Translators:
|
||||
------------
|
||||
|
@ -84,7 +84,8 @@ static const gint prev_translators_len = G_N_ELEMENTS(prev_translators);
|
||||
static const gchar *contributors =
|
||||
"Alexander Rodin, Alexey Antipov, Andrew Rowland, Anh Phạm, blackdog, Bo Lorentsen, Bob Doan, "
|
||||
"Bronisław Białek, Can Koy, Catalin Marinas, "
|
||||
"Chris Macksey, Christoph Berg, Colomban Wendling, Conrad Steenberg, Daniel Richard G., Dave Moore, "
|
||||
"Chris Macksey, Christoph Berg, Colomban Wendling, Conrad Steenberg, Daniel Richard G., "
|
||||
"Daniel Marjamaki, Dave Moore, "
|
||||
"Dimitar Zhekov, Dirk Weber, Elias Pschernig, Eric Forgeot, Eugene Arshinov, Felipe Pena, François Cami, "
|
||||
"Giuseppe Torelli, Guillaume de Rorthais, Guillaume Hoffmann, Herbert Voss, Jason Oster, "
|
||||
"Jean-François Wauthy, Jeff Pohlmeyer, Jesse Mayes, John Gabriele, Jon Senior, Jon Strait, Josef Whiter, "
|
||||
|
@ -206,18 +206,18 @@ br_extract_prefix (const char *path)
|
||||
tmp = g_strndup ((char *) path, end - path);
|
||||
if (!*tmp)
|
||||
{
|
||||
free (tmp);
|
||||
g_free (tmp);
|
||||
return strdup ("/");
|
||||
}
|
||||
end = strrchr (tmp, '/');
|
||||
if (!end) return tmp;
|
||||
|
||||
result = g_strndup (tmp, end - tmp);
|
||||
free (tmp);
|
||||
g_free (tmp);
|
||||
|
||||
if (!*result)
|
||||
{
|
||||
free (result);
|
||||
g_free (result);
|
||||
result = strdup ("/");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user