[gimp] app: be more robust about possible profile info return values
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: be more robust about possible profile info return values
- Date: Fri, 14 Mar 2014 19:28:06 +0000 (UTC)
commit 35606094e62e4d00cb77ee0ed9196c68978065db
Author: Michael Natterer <mitch gimp org>
Date: Fri Mar 14 18:40:08 2014 +0100
app: be more robust about possible profile info return values
app/widgets/gimpimageprofileview.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpimageprofileview.c b/app/widgets/gimpimageprofileview.c
index 63dac01..4747d15 100644
--- a/app/widgets/gimpimageprofileview.c
+++ b/app/widgets/gimpimageprofileview.c
@@ -155,7 +155,8 @@ gimp_image_profile_view_query (GimpImageProfileView *view)
&name, &desc, &info,
&error))
{
- if (desc || name)
+ if ((desc && strlen (desc)) ||
+ (name && strlen (name)))
{
const gchar *title;
@@ -178,7 +179,7 @@ gimp_image_profile_view_query (GimpImageProfileView *view)
gtk_text_buffer_insert_with_tags_by_name (view->buffer, &iter,
error->message, -1,
"emphasis", NULL);
- g_error_free (error);
+ g_clear_error (&error);
}
g_free (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]