[gjs] Don't try to free a const char*



commit 33ec047e4a91f192d101df8eb09726370050776f
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date:   Fri Mar 4 17:29:38 2011 +0100

    Don't try to free a const char*
    
    Make GjsDBusNameOwnerFuncs name a char* instead of a const char* to make g_free happy and silence a warning
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643325

 gjs-dbus/dbus.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs-dbus/dbus.h b/gjs-dbus/dbus.h
index 2a605a8..1cb1775 100644
--- a/gjs-dbus/dbus.h
+++ b/gjs-dbus/dbus.h
@@ -86,7 +86,7 @@ typedef void (* GjsDBusNameLostFunc)     (DBusConnection *connection,
                                           void           *data);
 
 typedef struct {
-    const char *name;
+    char *name;
     GjsDBusNameType type;
     GjsDBusNameAcquiredFunc acquired;
     GjsDBusNameLostFunc lost;



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