[anjuta] sourceview: Don't query for unused etag
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] sourceview: Don't query for unused etag
- Date: Fri, 18 Feb 2011 14:59:47 +0000 (UTC)
commit 98231f60fadf859ff5ea7b1d08cebb78b52fc54f
Author: Johannes Schmid <jhs gnome org>
Date: Fri Feb 18 15:56:59 2011 +0100
sourceview: Don't query for unused etag
Should (as a side-effect) fix rh#678411 as we now longer free a (possibly)
invalid etag
plugins/sourceview/sourceview-io.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/sourceview/sourceview-io.c b/plugins/sourceview/sourceview-io.c
index 3d557a9..91cff97 100644
--- a/plugins/sourceview/sourceview-io.c
+++ b/plugins/sourceview/sourceview-io.c
@@ -240,13 +240,11 @@ on_save_finished (GObject* file, GAsyncResult* result, gpointer data)
SourceviewIO* sio = SOURCEVIEW_IO(data);
AnjutaShell* shell = ANJUTA_PLUGIN (sio->sv->priv->plugin)->shell;
GError* err = NULL;
- gchar* etag = NULL;
g_file_replace_contents_finish (G_FILE (file),
result,
- &etag,
+ NULL,
&err);
g_free (sio->write_buffer);
- g_free (etag);
sio->write_buffer = NULL;
if (err)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]