summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2015-06-27 14:11:39 +0900
committerOBATA Akio <[email protected]>2015-06-27 14:11:39 +0900
commit0ad3772ad8850197a62d8a388857c6cd532edd77 (patch)
treec1c2f0150af28ec05da4f8d9ccaa567f8f02c765
parent2cdfa50d1108f0e0300ecd73111bb9c04132cb53 (diff)
downloadcaja-0ad3772ad8850197a62d8a388857c6cd532edd77.tar.bz2
caja-0ad3772ad8850197a62d8a388857c6cd532edd77.tar.xz
Use g_malloc instead of malloc to be safe
-rw-r--r--libcaja-private/caja-undostack-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcaja-private/caja-undostack-manager.c b/libcaja-private/caja-undostack-manager.c
index 1d988cda..79778460 100644
--- a/libcaja-private/caja-undostack-manager.c
+++ b/libcaja-private/caja-undostack-manager.c
@@ -903,7 +903,7 @@ caja_undostack_manager_data_add_trashed_file (CajaUndoStackActionData
return;
guint64 *modificationTime;
- modificationTime = (guint64 *) malloc (sizeof (guint64));
+ modificationTime = (guint64 *) g_malloc (sizeof (guint64));
*modificationTime = mtime;
char *originalURI = g_file_get_uri (file);
@@ -924,7 +924,7 @@ void caja_undostack_manager_data_add_file_permissions
return;
guint32 *currentPermission;
- currentPermission = (guint32 *) malloc (sizeof (guint32));
+ currentPermission = (guint32 *) g_malloc (sizeof (guint32));
*currentPermission = permission;
char *originalURI = g_file_get_uri (file);