[brasero] Harden code by checking for callback value being a BRASERO_PROJECT
- From: Luis Medinas <lmedinas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Harden code by checking for callback value being a BRASERO_PROJECT
- Date: Mon, 26 Apr 2010 23:10:27 +0000 (UTC)
commit a9bb2ff5eeffdaf627b7a70c6a1ba07cac399c55
Author: Tobias Mueller <tobiasmue gnome org>
Date: Tue Apr 13 00:17:36 2010 +0100
Harden code by checking for callback value being a BRASERO_PROJECT
Fixes bug 615602.
src/brasero-project.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/brasero-project.c b/src/brasero-project.c
index cc52c4f..ffd3f51 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -532,6 +532,8 @@ brasero_utils_disc_hide_use_info_data_received_cb (GtkWidget *widget,
{
GtkWidget *other_widget;
+ g_return_if_fail(BRASERO_IS_PROJECT(project));
+
other_widget = brasero_utils_disc_find_tree_view (project->priv->current);
if (!other_widget)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]