[patch] fix error freeing case



Hi,

This little patch should avoid possibly double-freeing a GError.


diff -u /src/work/rpms/libgnomecups/libgnomecups-0.1.9/libgnomecups/gnome-cups-request.c /tmp/buffer-content-19353QJP
--- libgnomecups-0.1.9/libgnomecups/gnome-cups-request.c~	2004-07-29 13:53:18.862915872 -0400
+++ libgnomecups-0.1.9/libgnomecups/gnome-cups-request.c	2004-07-29 13:53:29.574287496 -0400
@@ -265,8 +266,6 @@
 gnome_cups_request_struct_free (GnomeCupsRequest *request)
 {
 	g_free (request->path);
-	if (request->error && *request->error)
-		g_error_free (*request->error);
 	g_free (request);
 }	
 

Diff finished.  Thu Jul 29 13:53:29 2004

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]