[gtk+/gtk-2-24] modules: break when finding the right module
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] modules: break when finding the right module
- Date: Tue, 24 Jan 2012 16:46:30 +0000 (UTC)
commit ab6007f0528b9c87d9d433de29c0b591795495a0
Author: Benjamin Otte <otte redhat com>
Date: Sat Jan 21 21:05:37 2012 +0100
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.
gtk/gtkmodules.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index edc79ee..8c132d9 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -281,6 +281,7 @@ load_module (GSList *module_list,
info->ref_count++;
success = TRUE;
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]