From 145c158877f87346395c76181529f709e146acc2 Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 26 Jul 2004 19:50:12 +0000 Subject: [PATCH] library unload minor bugfix git-svn-id: http://ltt.polymtl.ca/svn@634 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/lttv/lttv/module.c b/ltt/branches/poly/lttv/lttv/module.c index 3ebd3a33..c2cc8fac 100644 --- a/ltt/branches/poly/lttv/lttv/module.c +++ b/ltt/branches/poly/lttv/lttv/module.c @@ -277,7 +277,9 @@ static void library_unload(LttvLibrary *l) void lttv_library_unload(LttvLibrary *l) { - l->info.load_count--; + /* In the case where we wait for a module to release, the load count is 0 + * and should not be decremented. */ + if(l->info.load_count != 0) l->info.load_count--; library_unload(l); } -- 2.34.1