1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Fix crash on exit.

Bump PORTREVISION.
This commit is contained in:
Adam Weinberger 2003-11-13 07:21:23 +00:00
parent 5801fd436c
commit 87e1e66894
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93866
2 changed files with 31 additions and 2 deletions

View File

@ -7,12 +7,12 @@
PORTNAME= mdh
PORTVERSION= 1.9.54
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= deskutils gnome
MASTER_SITES= http://www.gozer.org/my_stuff/gtk/gtk/mdh/
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK2-based toolbar, sortof a gnomepanel replacement sortof
COMMENT= GTK2-based toolbar, like a smaller GNOME panel
USE_X_PREFIX= yes
USE_BZIP2= yes

View File

@ -0,0 +1,29 @@
--- src/mdh.c.orig Thu Nov 13 02:17:50 2003
+++ src/mdh.c Thu Nov 13 02:18:20 2003
@@ -140,6 +140,8 @@
static void mdh_toolbar_custom_free(struct custom_t *obj)
{
+ g_return_if_fail(obj != NULL);
+
g_free(obj->value);
g_free(obj->command);
g_free(obj->tooltip);
@@ -147,6 +149,8 @@
static void mdh_toolbar_panel_free(struct panel_t *obj)
{
+ g_return_if_fail(obj != NULL);
+
g_free(obj->value);
g_free(obj->command);
g_free(obj->tooltip);
@@ -186,8 +190,6 @@
g_free(mdh_lock);
g_free(mdh_cache);
g_free(mdh_hist);
-
- exit(0);
}
static void mdh_toolbar_init(void)