library unload minor bugfix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 26 Jul 2004 19:50:12 +0000 (19:50 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 26 Jul 2004 19:50:12 +0000 (19:50 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@634 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/module.c

index 3ebd3a33e6e63f8116be71148858ce3f3896d72a..c2cc8fac72b1832979c45582b9c3114fe3ab2398 100644 (file)
@@ -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);
 }
 
This page took 0.024169 seconds and 4 git commands to generate.