[gnome-commander/gcmd-1-2-8] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] noop: code cleanup
- Date: Mon, 28 Mar 2011 17:11:05 +0000 (UTC)
commit c03a3f9421824649bf9c7cbf7445aceb0b97c585
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Mar 28 19:10:06 2011 +0200
noop: code cleanup
src/gnome-cmd-search-dialog.cc | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 42c9c72..d0c0163 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -94,6 +94,7 @@ struct SearchFileData
guint len;
};
+
struct GnomeCmdSearchDialogPrivate
{
SearchData *data; // holds data needed by the search routines
@@ -447,8 +448,8 @@ static gboolean join_thread_func (SearchData *data)
if (data->thread)
g_thread_join (data->thread);
- if (data->pdata.mutex != NULL)
- g_mutex_free (data->pdata.mutex);
+ if (data->pdata.mutex)
+ g_mutex_free (data->pdata.mutex);
g_free (data->search_mem);
@@ -473,7 +474,7 @@ static void on_dialog_destroy (GnomeCmdSearchDialog *dialog, gpointer user_data)
g_timeout_add (1, (GSourceFunc) join_thread_func, data);
// Unref all directories which contained matching files from last search
- if (data->pdata.mutex != NULL)
+ if (data->pdata.mutex)
{
g_mutex_lock (data->pdata.mutex);
if (data->match_dirs)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]