Index: src/pref_dialog.c =================================================================== --- src/pref_dialog.c (revision 26049) +++ src/pref_dialog.c (working copy) @@ -54,7 +54,8 @@ //TODO: fix the absolute path icon_pixbuf = gdk_pixbuf_new_from_file ("./pixmaps/xarchiver-behaviour.svg", NULL); gtk_list_store_set (prefs_data->prefs_liststore, &iter, 0, icon_pixbuf, 1, _("Behaviour"),2,0,-1); - g_object_unref (icon_pixbuf); + if(icon_pixbuf != NULL) + g_object_unref (icon_pixbuf); gtk_list_store_append (prefs_data->prefs_liststore, &iter); icon_pixbuf = gtk_widget_render_icon (prefs_data->dialog1, "gtk-find", GTK_ICON_SIZE_DND, NULL); @@ -62,7 +63,7 @@ g_object_unref (icon_pixbuf); gtk_list_store_append (prefs_data->prefs_liststore, &iter); - icon_pixbuf = gtk_widget_render_icon (prefs_data->dialog1, "gtk-execute", GTK_ICON_SIZE_DND, NULL); + icon_pixbuf = gtk_widget_render_icon (prefs_data->dialog1, "gtk-execute", GTK_ICON_SIZE_DND, NULL); gtk_list_store_set (prefs_data->prefs_liststore, &iter, 0, icon_pixbuf, 1, _("Advanced"),2,2,-1); g_object_unref (icon_pixbuf); Index: src/window.c =================================================================== --- src/window.c (revision 26049) +++ src/window.c (working copy) @@ -1683,7 +1683,7 @@ gdk_atom_intern ("XdndDirectSave0", FALSE), gdk_atom_intern ("text/plain", FALSE), 8, GDK_PROP_MODE_REPLACE, - (const guchar *) no_slashes != NULL ? no_slashes : name, no_slashes != NULL ? strlen (no_slashes) : strlen (name) ); + (const guchar *) (no_slashes != NULL ? no_slashes : name), no_slashes != NULL ? strlen (no_slashes) : strlen (name) ); g_list_foreach (row_list, (GFunc) gtk_tree_path_free, NULL); g_list_free (row_list); Index: src/archive.c =================================================================== --- src/archive.c (revision 26049) +++ src/archive.c (working copy) @@ -133,7 +133,7 @@ gboolean xa_dump_child_error_messages (GIOChannel *ioc, GIOCondition cond, gpointer data) { - XArchive *archive = data; + //XArchive *archive = data; GIOStatus status; gchar *line = NULL; Index: src/string_utils.c =================================================================== --- src/string_utils.c (revision 26049) +++ src/string_utils.c (working copy) @@ -276,7 +276,7 @@ return local_escaped_path; } -gchar *xa_get_parent_dir (gchar *current_dir) +gchar *xa_get_parent_dir (const gchar *current_dir) { gchar *first_slash = NULL; gchar *second_slash = NULL; Index: src/string_utils.h =================================================================== --- src/string_utils.h (revision 26049) +++ src/string_utils.h (working copy) @@ -37,7 +37,7 @@ char **split_line (char *line,int n_fields); char *escape_str_common (const char *str, const char *meta_chars, const char prefix, const char postfix); char *eat_spaces (char *line); -gchar *xa_get_parent_dir (gchar *current_dir); +gchar *xa_get_parent_dir (const gchar *current_dir); gchar *remove_level_from_path (const gchar *path); gboolean file_extension_is (const char *filename, const char *ext); gchar *extract_local_path (gchar *path);