Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > a61ea15d374250920d6e177becd7b26b > files > 1

gphpedit-0.9.91-5mdv2010.1.src.rpm

--- gphpedit-0.9.91.orig/src/find_replace.c
+++ gphpedit-0.9.91/src/find_replace.c
@@ -478,7 +478,10 @@
 
 	replace_all_dialog = gnome_ok_dialog(message->str);
 	gnome_dialog_run_and_close(GNOME_DIALOG(replace_all_dialog));
-	g_free(replace_all_dialog);
+	// Comment the line bellow as suggested at 
+	// http://www.gphpedit.org/bugs/bug_view.php?id=132 to avoid from
+	// a crash after searching & replacing.
+	//g_free(replace_all_dialog);
 	
 	gtk_scintilla_goto_pos(GTK_SCINTILLA(main_window.current_editor->scintilla), start_pos);
 }