modules: break when finding the right module

This way, we don't use the wrong module. In particular we don't screw up
refcounts that lead to crashes later on.
This commit is contained in:
Benjamin Otte 2012-01-21 21:05:37 +01:00
parent 308d195014
commit ab6007f052

View File

@ -281,6 +281,7 @@ load_module (GSList *module_list,
info->ref_count++;
success = TRUE;
break;
}
}