Backport two patches from upstream 4_4 branch which fixes two memleaks.
While here, convert to use x11/xfce4 module. ok ajacoutot@
This commit is contained in:
parent
dc4df24aba
commit
fbc6a820bf
@ -1,24 +1,18 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2008/05/24 01:24:31 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2008/06/14 16:35:36 landry Exp $
|
||||
|
||||
COMMENT= xfce4 desktop manager
|
||||
|
||||
V= 4.4.2
|
||||
DISTNAME= xfdesktop-${V}
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
XFCE_PROJECT= xfdesktop
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
|
||||
HOMEPAGE= http://www.xfce.org/projects/xfdesktop/
|
||||
MAINTAINER= Landry Breuil <gaston@gcu.info>
|
||||
|
||||
# GPL
|
||||
# GPLv2
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.xfce.org/archive/xfce-${V}/src/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
USE_GMAKE= Yes
|
||||
MODULES= x11/xfce4
|
||||
DESKTOP_FILES= Yes
|
||||
|
||||
CONFIGURE_ARGS= --enable-thunarx \
|
||||
--enable-exo
|
||||
@ -27,8 +21,7 @@ LIB_DEPENDS= xfcegui4.>=4::x11/xfce4/libxfcegui4 \
|
||||
xfce4mcs-client.>=3::x11/xfce4/libxfce4mcs \
|
||||
thunar-vfs-1.>=4,thunarx-1.>=4::x11/xfce4/thunar \
|
||||
|
||||
RUN_DEPENDS= ::devel/desktop-file-utils \
|
||||
::x11/xfce4/xfce-mcs-manager
|
||||
RUN_DEPENDS= ::x11/xfce4/xfce-mcs-manager
|
||||
|
||||
WANTLIB= ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
|
||||
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1 \
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-modules_menu_desktop-menu-dentry_c,v 1.1 2008/06/14 16:35:36 landry Exp $
|
||||
--- modules/menu/desktop-menu-dentry.c.orig Thu Jun 12 18:24:40 2008
|
||||
+++ modules/menu/desktop-menu-dentry.c Thu Jun 12 18:25:02 2008
|
||||
@@ -173,7 +173,7 @@ _menu_shell_insert_sorted(GtkMenuShell *menu_shell, Gt
|
||||
if(cmpname && g_ascii_strcasecmp(name, cmpname) < 0)
|
||||
break;
|
||||
}
|
||||
-
|
||||
+ g_list_free(items);
|
||||
gtk_menu_shell_insert(menu_shell, mi, i);
|
||||
|
||||
return i;
|
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-modules_menu_desktop-menuspec_c,v 1.1 2008/06/14 16:35:37 landry Exp $
|
||||
--- modules/menu/desktop-menuspec.c.orig Thu Jun 12 18:25:32 2008
|
||||
+++ modules/menu/desktop-menuspec.c Thu Jun 12 18:26:06 2008
|
||||
@@ -203,7 +203,7 @@ get_paths_multilevel(GNode *node, gpointer data)
|
||||
else
|
||||
foundcat = NULL;
|
||||
if(!foundcat) {
|
||||
- g_ptr_array_free(revpath, FALSE);
|
||||
+ g_ptr_array_free(revpath, TRUE);
|
||||
revpath = NULL;
|
||||
break;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ get_paths_multilevel(GNode *node, gpointer data)
|
||||
newpath[totlen] = 0;
|
||||
|
||||
g_ptr_array_add(mtfpi->paths, newpath);
|
||||
- g_ptr_array_free(revpath, FALSE);
|
||||
+ g_ptr_array_free(revpath, TRUE);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user