[gtk+] gtkcssprovider: fix a crash in gtk_css_provider_parsing_error
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkcssprovider: fix a crash in gtk_css_provider_parsing_error
- Date: Fri, 9 Sep 2011 13:37:40 +0000 (UTC)
commit e028a5c09090f7a153e0a57459edbb93dcf9e126
Author: Dan Winship <danw gnome org>
Date: Fri Sep 9 09:32:54 2011 -0400
gtkcssprovider: fix a crash in gtk_css_provider_parsing_error
"info" was being declared in two different scopes, and the one that
was freed wasn't the one that was set.
gtk/gtkcssprovider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 6f5faed..1037342 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1057,7 +1057,7 @@ gtk_css_provider_parsing_error (GtkCssProvider *provider,
file = gtk_css_section_get_file (section);
if (file)
{
- GFileInfo *info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, 0, NULL, NULL);
+ info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, 0, NULL, NULL);
if (info)
path = g_file_info_get_display_name (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]