Hi!

I've added to many g_free in the _resume_from_editor function that crashed
vimprobable after the editor was closed.

Daniel
>From 401e02d3a4c33c596fcb88b59a69d5b701b5b208 Mon Sep 17 00:00:00 2001
From: Daniel Carl <[email protected]>
Date: Sun, 3 Feb 2013 20:18:02 +0100
Subject: [PATCH] Removed g_free that caused segmentation fault.

---
 main.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/main.c b/main.c
index 8ed0a18..38a5779 100644
--- a/main.c
+++ b/main.c
@@ -1957,8 +1957,6 @@ _resume_from_editor(GPid child_pid, int child_status, gpointer data) {
     fclose(fp);
 
     jsapi_evaluate_script(set_value_js->str, &value, &message);
-    g_free(value);
-    g_free(message);
 
     /* Fall through, error and normal exit are identical */
 error_exit:
-- 
1.7.9.5

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users

Reply via email to