summaryrefslogtreecommitdiff
path: root/gio/src/fileinputstream.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2010-01-29 14:22:19 +0100
committerMurray Cumming <murrayc@murrayc.com>2010-01-29 14:22:19 +0100
commitafa80fbc792015d7f9143e5ae7d92329356640fc (patch)
tree80698a17a8130fcd68a7eee3ebcadd00d3036ca9 /gio/src/fileinputstream.ccg
parent6c48bee7dc03671e5e88e8060f68240cfb68fc6f (diff)
downloadglibmm-afa80fbc792015d7f9143e5ae7d92329356640fc.tar.gz
Use Glib::unwrap() instead of ->gobj(),
* gio/src/*.ccg: Use Glib::unwrap() instead of ->gobj(), so we don't crash if people pass in null RefPtr<>s, which they might do by accident, or if we have not wrapped all the may-be-null cases as method overrides.
Diffstat (limited to 'gio/src/fileinputstream.ccg')
-rw-r--r--gio/src/fileinputstream.ccg2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/src/fileinputstream.ccg b/gio/src/fileinputstream.ccg
index bf89e0c6..5ac95586 100644
--- a/gio/src/fileinputstream.ccg
+++ b/gio/src/fileinputstream.ccg
@@ -73,7 +73,7 @@ FileInputStream::query_info_async(const SlotAsyncReady& slot, const Glib::RefPtr
g_file_input_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
- cancellable->gobj(),
+ Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
}