library unload minor bugfix
[lttv.git] / 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.023378 seconds and 4 git commands to generate.