git://git.jankratochvil.net
/
captive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceaa91a
)
Fixed proper 'vfs' unref during non-interactive command mode.
author
short
<>
Sat, 13 Sep 2003 18:00:43 +0000
(18:00 +0000)
committer
short
<>
Sat, 13 Sep 2003 18:00:43 +0000
(18:00 +0000)
src/client/cmdline/main.c
patch
|
blob
|
history
diff --git
a/src/client/cmdline/main.c
b/src/client/cmdline/main.c
index
4fc9085
..
299c28f
100644
(file)
--- a/
src/client/cmdline/main.c
+++ b/
src/client/cmdline/main.c
@@
-200,6
+200,7
@@
gboolean errvfsresult_to_gerr(GError **errp,GnomeVFSResult errvfsresult)
static GIOChannel *main_giochannel;
+void main_exit(void) G_GNUC_NORETURN;
void main_exit(void)
{
if (cmdline_captive_vfs_object) {
@@
-302,5
+303,6
@@
struct captive_options options;
/* 'cmd_argv' gets cleared by 'poptFreeContext(context);' below */
poptFreeContext(context);
- return EXIT_SUCCESS;
+ main_exit(); /* unref 'cmdline_captive_vfs_object' */
+ /* NOTREACHED */
}