[gnome-commander] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup
- Date: Mon, 28 Mar 2011 17:11:10 +0000 (UTC)
commit 840becd24b5af74e49b4b057a816d3d7616f1f23
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 899a5e5..3011cf4 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -96,6 +96,7 @@ struct SearchFileData
guint len;
};
+
struct GnomeCmdSearchDialogPrivate
{
SearchData *data; // holds data needed by the search routines
@@ -444,8 +445,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);
@@ -470,7 +471,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]