[nautilus-actions] Fix disallocation of the profile by calling g_object_unref
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions] Fix disallocation of the profile by calling g_object_unref
- Date: Wed, 10 Jun 2009 16:13:31 -0400 (EDT)
commit b2cb6dc102a02b64eb4b7bd6fca0fd0301e4791f
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Jun 10 19:44:16 2009 +0200
Fix disallocation of the profile by calling g_object_unref
---
ChangeLog | 3 +++
src/common/nact-action-profile.c | 17 ++++++++---------
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3f702a5..028dad9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
* configure.ac: Bump version number.
+ * src/common/nact-action-profile.c (nact_action_profile_free):
+ Fix disallocation of the profile by calling g_object_unref.
+
2009-06-09 Pierre Wieser <pwieser trychlos org>
* configure.ac: Bump version number for 1.11.0 release.
diff --git a/src/common/nact-action-profile.c b/src/common/nact-action-profile.c
index 9918847..b2180a2 100644
--- a/src/common/nact-action-profile.c
+++ b/src/common/nact-action-profile.c
@@ -430,7 +430,13 @@ instance_finalize( GObject *object )
g_assert( NACT_IS_ACTION_PROFILE( object ));
NactActionProfile *self = ( NactActionProfile * ) object;
- nact_action_profile_free( self );
+ g_free( profile->private->name );
+ g_free( profile->private->label );
+ g_free( profile->private->path );
+ g_free( profile->private->parameters );
+ nactuti_free_string_list( profile->private->basenames );
+ nactuti_free_string_list( profile->private->mimetypes );
+ nactuti_free_string_list( profile->private->schemes );
/* chain call to parent class */
if((( GObjectClass * ) st_parent_class )->finalize ){
@@ -504,14 +510,7 @@ void
nact_action_profile_free( NactActionProfile *profile )
{
g_assert( NACT_IS_ACTION_PROFILE( profile ));
-
- g_free( profile->private->name );
- g_free( profile->private->label );
- g_free( profile->private->path );
- g_free( profile->private->parameters );
- nactuti_free_string_list( profile->private->basenames );
- nactuti_free_string_list( profile->private->mimetypes );
- nactuti_free_string_list( profile->private->schemes );
+ g_object_unref( profile );
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]