branch: externals/xeft
commit 2b515faf2ed62a5c9727e6abeb69e076413774fe
Author: Yuan Fu <caso...@gmail.com>
Commit: Yuan Fu <caso...@gmail.com>

    * xeft-module.cc (copy_string): Fix free statement;
---
 xeft-module.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xeft-module.cc b/xeft-module.cc
index 92a5442a87..e8b559f534 100644
--- a/xeft-module.cc
+++ b/xeft-module.cc
@@ -291,12 +291,12 @@ copy_string (emacs_env *env, emacs_value value)
   if (copy_string_contents (env, value, &char_buffer, &size))
     {
       string str = (string) char_buffer;
-      free (*char_buffer);
+      free (char_buffer);
       return str;
     }
   else
     {
-      free (*char_buffer);
+      free (char_buffer);
       signal (env, "xeft-error",
               "Error turning lisp string to C++ string");
       return "";

Reply via email to