position ok with processing
[lttv.git] / ltt / branches / poly / lttv / lttv / module.c
index 18cc24e03a2740efd21c10ebca5d8a4e7e431414..3ebd3a33e6e63f8116be71148858ce3f3896d72a 100644 (file)
@@ -189,7 +189,7 @@ static LttvLibrary *library_load(char *name, GError **error)
     module_chain = NULL;
     module_next = &module_chain;
     gm = g_module_open(pathname,0);
-    g_free(pathname);    
+    g_free(pathname);
     
     if(gm != NULL) break;
 
@@ -226,8 +226,8 @@ static LttvLibrary *library_load(char *name, GError **error)
 
 LttvLibrary *lttv_library_load(char *name, GError **error)
 {
-  LttvLibrary *l = library_load(name, error); 
-  l->info.load_count++;
+  LttvLibrary *l = library_load(name, error);
+  if(l != NULL) l->info.load_count++;
   return l;
 }
 
This page took 0.023428 seconds and 4 git commands to generate.