SF.net SVN: geany: [2076] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Thu Nov 29 18:18:52 UTC 2007
Revision: 2076
http://geany.svn.sourceforge.net/geany/?rev=2076&view=rev
Author: eht16
Date: 2007-11-29 10:18:52 -0800 (Thu, 29 Nov 2007)
Log Message:
-----------
Fix broken Run command on Java files on Windows.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/build.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-11-29 18:08:20 UTC (rev 2075)
+++ trunk/ChangeLog 2007-11-29 18:18:52 UTC (rev 2076)
@@ -11,6 +11,7 @@
Add dialogs_show_msgbox_with_secondary().
Add line and column number in charset conversion error dialog when
saving a file and improve display of the failed character.
+ * src/build.c: Fix broken Run command on Java files on Windows.
2007-11-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c 2007-11-29 18:08:20 UTC (rev 2075)
+++ trunk/src/build.c 2007-11-29 18:18:52 UTC (rev 2076)
@@ -616,7 +616,8 @@
// there is already the extension .exe, so first remove it and then add .class
tmp = utils_remove_ext_from_filename(long_executable);
check_executable = g_strconcat(tmp, ".class", NULL);
- g_free(tmp);
+ // store the filename without "exe" extension for Java, tmp will be freed by setptr
+ setptr(long_executable, tmp);
#else
check_executable = g_strconcat(long_executable, ".class", NULL);
#endif
@@ -644,6 +645,7 @@
g_free(check_executable);
return NULL;
}
+ g_free(check_executable);
}
// remove path
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list