Fix GLib critical messages

This commit is contained in:
Arx Cruz 2015-05-29 14:29:12 +02:00
parent e6055cc19a
commit 160f0442c6

View File

@ -342,9 +342,11 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data
NULL); NULL);
/* set the notification hints for the displayed notification */ /* set the notification hints for the displayed notification */
notification_hints = zenity_notification_parse_hints_array (notification_data->notification_hints); if (notification_data->notification_hints != NULL) {
zenity_notification_set_hints(notification, notification_hints); notification_hints = zenity_notification_parse_hints_array (notification_data->notification_hints);
g_hash_table_unref (notification_hints); zenity_notification_set_hints(notification, notification_hints);
g_hash_table_unref (notification_hints);
}
/* Show icon and wait */ /* Show icon and wait */
error = NULL; error = NULL;