Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-04 04:30:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-04 04:30:31 +0300
commit935c9ab0de1ce3d36f93ce5aeee5d0f82d6f2591 (patch)
treea735f6c42044b6d7df3ce538468f6fcaff5e343a /intern/ghost/intern/GHOST_EventDragnDrop.h
parent0dbd05ffdd52c62c055fa68ab42061831a71b1ee (diff)
Cleanup: Cleanup: style, use braces for GHOST (X11/SDL)
Diffstat (limited to 'intern/ghost/intern/GHOST_EventDragnDrop.h')
-rw-r--r--intern/ghost/intern/GHOST_EventDragnDrop.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_EventDragnDrop.h b/intern/ghost/intern/GHOST_EventDragnDrop.h
index 8e2a8d806ee..c9279d99cde 100644
--- a/intern/ghost/intern/GHOST_EventDragnDrop.h
+++ b/intern/ghost/intern/GHOST_EventDragnDrop.h
@@ -92,8 +92,9 @@ class GHOST_EventDragnDrop : public GHOST_Event {
~GHOST_EventDragnDrop()
{
// Free the dropped object data
- if (m_dragnDropEventData.data == NULL)
+ if (m_dragnDropEventData.data == NULL) {
return;
+ }
switch (m_dragnDropEventData.dataType) {
case GHOST_kDragnDropTypeBitmap:
@@ -103,8 +104,9 @@ class GHOST_EventDragnDrop : public GHOST_Event {
GHOST_TStringArray *strArray = (GHOST_TStringArray *)m_dragnDropEventData.data;
int i;
- for (i = 0; i < strArray->count; i++)
+ for (i = 0; i < strArray->count; i++) {
free(strArray->strings[i]);
+ }
free(strArray->strings);
free(strArray);