[perl-Glib-Object-Introspection] Avoid a segfault in an error branch
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Avoid a segfault in an error branch
- Date: Sat, 21 Mar 2015 19:36:05 +0000 (UTC)
commit 7fdc5df8ca2dbaa6d26c1ccf2549e253c104a80f
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Fri Mar 6 17:34:41 2015 +0100
Avoid a segfault in an error branch
In Glib::Object::Introspection::_construct_boxed.
GObjectIntrospection.xs | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/GObjectIntrospection.xs b/GObjectIntrospection.xs
index 1a2e81d..e3f0028 100644
--- a/GObjectIntrospection.xs
+++ b/GObjectIntrospection.xs
@@ -617,7 +617,6 @@ _construct_boxed (class, package)
repository = g_irepository_get_default ();
info = g_irepository_find_by_gtype (repository, gtype);
if (!info) {
- g_base_info_unref (info);
ccroak ("Could not fetch information for package %s; "
"perhaps it has not been loaded via "
"Glib::Object::Introspection?",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]