[brasero/gnome-2-30] Harden code by checking for callback value being a BRASERO_PROJECT



commit 92913e3c0fd4e58f511dffc993be8a8e3a3658be
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]