[gjs] Don't try to free a const char*
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Don't try to free a const char*
- Date: Thu, 10 Mar 2011 21:29:47 +0000 (UTC)
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]