summaryrefslogtreecommitdiff
path: root/editors/gedit2
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2003-10-16 13:56:59 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2003-10-16 13:56:59 +0000
commite6c08ebb5b849c9769b5b07946c539fe6b7d0082 (patch)
tree08024fd097d7006d7b22c8c946882b0c014ed433 /editors/gedit2
parentAdd p5-Devel-Size 0.58, (diff)
Fix memory access after free().
This was a source of SIGBUS in print/printpreview on -CURRENT. Reported by: Jacek Wotka <cn@team-fatal.com>
Notes
Notes: svn path=/head/; revision=91434
Diffstat (limited to 'editors/gedit2')
-rw-r--r--editors/gedit2/Makefile1
-rw-r--r--editors/gedit2/files/patch-gedit::gedit-print.c32
2 files changed, 33 insertions, 0 deletions
diff --git a/editors/gedit2/Makefile b/editors/gedit2/Makefile
index 29665770ba14..c750af5f4347 100644
--- a/editors/gedit2/Makefile
+++ b/editors/gedit2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gedit2
PORTVERSION= 2.4.0
+PORTREVISION= 1
CATEGORIES= editors gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.4
diff --git a/editors/gedit2/files/patch-gedit::gedit-print.c b/editors/gedit2/files/patch-gedit::gedit-print.c
new file mode 100644
index 000000000000..cd4684269e9c
--- /dev/null
+++ b/editors/gedit2/files/patch-gedit::gedit-print.c
@@ -0,0 +1,32 @@
+--- gedit/gedit-print.c.orig Thu Oct 16 22:22:09 2003
++++ gedit/gedit-print.c Thu Oct 16 22:29:04 2003
+@@ -388,6 +388,8 @@
+
+ g_object_unref (gjob);
+
++ gtk_widget_destroy (pji->dialog);
++
+ if (pji->preview == PREVIEW)
+ gedit_print_job_info_destroy (pji, FALSE);
+ else
+@@ -395,8 +397,6 @@
+ g_signal_handlers_disconnect_by_func (pji->pjob, (GCallback) page_cb, pji);
+ g_signal_handlers_disconnect_by_func (pji->pjob, (GCallback) preview_finished_cb, pji);
+ }
+-
+- gtk_widget_destroy (pji->dialog);
+
+ gtk_widget_show (preview);
+ }
+@@ -412,9 +412,9 @@
+
+ g_object_unref (gjob);
+
+- gedit_print_job_info_destroy (pji, TRUE);
+-
+ gtk_widget_destroy (pji->dialog);
++
++ gedit_print_job_info_destroy (pji, TRUE);
+ }
+
+ void