1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

Fix memory access after free().

This was a source of SIGBUS in print/printpreview on -CURRENT.

Reported by: Jacek Wotka <cn@team-fatal.com>
This commit is contained in:
Alexander Nedotsukov 2003-10-16 13:56:59 +00:00
parent f616b23d9d
commit e6c08ebb5b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91434
2 changed files with 33 additions and 0 deletions

View File

@ -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

View File

@ -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