[anjuta/mastert] document-manager: don't free AnjutaDocmanPriv ourselves
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/mastert] document-manager: don't free AnjutaDocmanPriv ourselves
- Date: Sun, 21 Apr 2013 16:40:00 +0000 (UTC)
commit 5d84ed461bcdc3c09f85ad892852633989a2efd0
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sun Apr 21 18:35:46 2013 +0200
document-manager: don't free AnjutaDocmanPriv ourselves
This should have been removed in 9afaac5a09ccdaf9304b4e0e83c936d8cd8067ec
plugins/document-manager/anjuta-docman.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/plugins/document-manager/anjuta-docman.c b/plugins/document-manager/anjuta-docman.c
index 490d864..5aef07a 100644
--- a/plugins/document-manager/anjuta-docman.c
+++ b/plugins/document-manager/anjuta-docman.c
@@ -997,13 +997,10 @@ anjuta_docman_finalize (GObject *obj)
DEBUG_PRINT ("%s", "Finalising AnjutaDocman object");
docman = ANJUTA_DOCMAN (obj);
- if (docman->priv)
- {
- if (docman->priv->fileselection)
- gtk_widget_destroy (docman->priv->fileselection);
- g_free (docman->priv);
- docman->priv = NULL;
- }
+
+ if (docman->priv->fileselection)
+ gtk_widget_destroy (docman->priv->fileselection);
+
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]