openbsd-ports/x11/gnome/vfs2/patches/patch-daemon_daemon-connection_c
jasper 8f8cd4ac32 - plug some mem leaks
from gnome-vfs svn
ok martynas@
2007-12-16 00:03:34 +00:00

20 lines
738 B
Plaintext

$OpenBSD: patch-daemon_daemon-connection_c,v 1.1 2007/12/16 00:03:34 jasper Exp $
--- daemon/daemon-connection.c.orig Sun Dec 16 00:25:41 2007
+++ daemon/daemon-connection.c Sun Dec 16 00:26:38 2007
@@ -1365,6 +1365,7 @@ connection_handle_get_file_info (DaemonConnection *con
info,
options,
context);
+ gnome_vfs_uri_unref (uri);
gnome_vfs_daemon_set_current_connection (NULL);
if (cancellation) {
@@ -1476,6 +1477,7 @@ connection_handle_is_local (DaemonConnection *conn,
gnome_vfs_daemon_set_current_connection (conn->conn);
is_local = gnome_vfs_uri_is_local (uri);
gnome_vfs_daemon_set_current_connection (NULL);
+ gnome_vfs_uri_unref (uri);
reply = connection_create_reply_ok (message);